Flexalon uses a box model to perform layout. Each gameObject has an invisible box which is used by the layout algorithms. If a Flexalon Object Component is added to the gameObject, you can see this box represented by a light blue box:
By default, an object's box size is based on the size of the Unity components attached to it. For more information on how this works, see the Adapter documentation.
Flexalon Object Component
To control the size of an object, add a Flexalon Object component to it and edit the width, height, or depth properties.
Size Options
Component | The size is determined by the Adapter and attached Unity components such as MeshRenderer, SpriteRenderer, TMP_Text, RectTransform, and Colliders. An empty GameObject gets a size of 1. |
Fixed | Specify a fixed size value. |
Fill | Specify a factor of the space allocated by the parent layout. For example, 0.5 will fill half of the space. |
Layout | The size determined by the layout's algorithm. |
When using Fixed size, spherical handles will appear to let you adjust the size in the editor.
Offset
Use offset to add an offset to the final position of the gameObject after layout is complete.
Rotation
Use rotation to set the rotation of the gameObject before layout runs. This will generate a new size to encapsulate the rotated object.
Scale
Use rotation to scale the size of the gameObject before layout runs. This will generate a new size to encapsulate the scaled object.
Margins
Use margins to add additional space around a gameObject which is considered by its parent's layout.
Padding
Use padding to add additional space inside the gameObject, which reduces the available space for the children.
© 2023 Virtual Maker Corporation Privacy