Flexalon Objects

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:

Flexalon Box Model

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.

Flexalon Object Component

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.

Flexalon Object Size Handles


Use offset to add an offset to the final position of the gameObject after layout is complete.


Use rotation to set the rotation of the gameObject before layout runs. This will generate a new size to encapsulate the rotated object.


Use rotation to scale the size of the gameObject before layout runs. This will generate a new size to encapsulate the scaled object.


Use margins to add additional space around a gameObject which is considered by its parent's layout.


Use padding to add additional space inside the gameObject, which reduces the available space for the children.

© 2022 Virtual Maker Corporation