The Horizontal Layout Group component places its child layout elements next to each other, side by side. Their widths are determined by their respective minimum, preferred, and flexible widths according to the following model:
For more information about minimum, preferred, and flexible width, see the documentation on Auto Layout.
Свойство: | Функция: |
---|---|
Padding | The padding inside the edges of the layout group. |
Spacing | The spacing between the layout elements. |
Child Alignment | The alignment to use for the child layout elements if they don’t fill out all the available space. |
Control Child Size | Whether the Layout Group controls the width and height of its child layout elements. |
Use Child Scale | Whether the Layout Group considers the scale of its child layout elements when sizing and laying out elements. Width and Height correspond to the Scale > X and Scale > Y values in each child layout element’s Rect Transform component. |
Child Force Expand | Whether to force the child layout elements to expand to fill additional available space. |