Layout Group controller that arranges children in rows, fitting as many on a line until total width exceeds parent bounds.
More...
|
|
override void | CalculateLayoutInputHorizontal () |
| |
|
override void | SetLayoutHorizontal () |
| |
|
override void | SetLayoutVertical () |
| |
|
override void | CalculateLayoutInputVertical () |
| |
| float | SetLayout (float width, int axis, bool layoutInput) |
| | Main layout method.
|
| |
|
float | GetGreatestMinimumChildWidth () |
| |
|
|
float | Spacing = 0f |
| |
|
bool | ChildForceExpandWidth = false |
| |
|
bool | ChildForceExpandHeight = false |
| |
|
|
void | LayoutRow (IList< RectTransform > contents, float rowWidth, float rowHeight, float maxWidth, float xOffset, float yOffset, int axis) |
| |
|
|
bool | IsCenterAlign [get] |
| |
|
bool | IsRightAlign [get] |
| |
|
bool | IsMiddleAlign [get] |
| |
|
bool | IsLowerAlign [get] |
| |
|
|
float | CalculateRowVerticalOffset (float groupHeight, float yOffset, float currentRowHeight) |
| |
|
|
float | _layoutHeight |
| |
|
readonly IList< RectTransform > | _rowList = new List<RectTransform>() |
| | Holds the rects that will make up the current row being processed.
|
| |
Layout Group controller that arranges children in rows, fitting as many on a line until total width exceeds parent bounds.
◆ SetLayout()
| float FlowLayoutGroup.SetLayout |
( |
float | width, |
|
|
int | axis, |
|
|
bool | layoutInput ) |
Main layout method.
- Parameters
-
| width | Width to calculate the layout with |
| axis | 0 for horizontal axis, 1 for vertical |
| layoutInput | If true, sets the layout input for the axis. If false, sets child position for axis |
The documentation for this class was generated from the following file:
- C:/Users/Pidge/Documents/gamedev/core_project_arrhythmia/Assets/Scripts/FlowLayoutGroup.cs