EasyLayout
Namespace: EasyLayout Inherits from: UnityEngine.UI.LayoutGroup
EasyLayout.
Fields
Name |
Description |
GroupPosition |
Type: Anchors
Default: Anchors.UpperLeft The group position. |
Stacking |
Type: Stackings
Default: Stackings.Horizontal The stacking type. |
LayoutType |
Type: LayoutTypes
Default: LayoutTypes.Compact The type of the layout. |
RowAlign |
Type: HorizontalAligns
Default: HorizontalAligns.Left The row align. |
InnerAlign |
Type: InnerAligns
Default: InnerAligns.Top The inner align. |
CellAlign |
Type: Anchors
Default: Anchors.UpperLeft The cell align. |
Spacing |
Type: Vector2
Default: new Vector2(5, 5) The spacing. |
Symmetric |
Type: bool
Default: true Symmetric margin. |
Margin |
Type: Vector2
Default: new Vector2(5, 5) The margin. |
PaddingInner |
Type: Padding
Default: new Padding() The padding. |
MarginTop |
Type: float
Default: 5f The margin top. |
MarginBottom |
Type: float
Default: 5f The margin bottom. |
MarginLeft |
Type: float
Default: 5f The margin left. |
MarginRight |
Type: float
Default: 5f The margin right. |
RightToLeft |
Type: bool
Default: false The right to left stacking. |
TopToBottom |
Type: bool
Default: true The top to bottom stacking. |
SkipInactive |
Type: bool
Default: true The skip inactive. |
Filter |
Type: Func<IEnumerable<GameObject>,IEnumerable<GameObject>>
Default: null The filter. |
ChildrenWidth |
Type: ChildrenSize
How to control width of the children. |
ChildrenHeight |
Type: ChildrenSize
How to control height of the children. |
ControlWidth |
Type: bool
Control width of children. |
ControlHeight |
Type: bool
Control height of children. |
MaxWidth |
Type: bool
Sets width of the chidren to maximum width from them. |
MaxHeight |
Type: bool
Sets height of the chidren to maximum height from them. |
BlockSize |
Type: Vector2
Gets or sets the size of the inner block. |
UISize |
Type: Vector2
Gets or sets the UI size. |
minHeight |
Type: float
Gets the minimum height. |
minWidth |
Type: float
Gets the minimum width. |
preferredHeight |
Type: float
Gets the preferred height. |
preferredWidth |
Type: float
Gets the preferred width. |
Methods
void SetLayoutHorizontal()
Description
Sets the layout horizontal.
void SetLayoutVertical()
Description
Sets the layout vertical.
void CalculateLayoutInputHorizontal()
Description
Calculates the layout input horizontal.
void CalculateLayoutInputVertical()
Description
Calculates the layout input vertical.
float GetLength(RectTransform ui, bool scaled = true)
Parameters
RectTransform |
ui |
User interface. |
bool |
scaled |
Default: true If set to true scaled. |
Returns
float The length.
Description
Gets the length.
void NeedUpdateLayout()
Description
Marks layout to update.
void CalculateLayoutSize()
Description
Calculates the size of the layout.
void UpdateLayout()
Description
Updates the layout.
float GetMarginTop()
Description
Gets the margin top.
float GetMarginBottom()
Description
Gets the margin bottom.
float GetMarginLeft()
Description
Gets the margin left.
float GetMarginRight()
Description
Gets the margin right.
void Upgrade()
Description
Upgrade to keep compatibility between versions.
Static Methods
float GetPreferredWidth(RectTransform rect)
Parameters
Returns
float The preferred width.
Description
Gets the preferred width of the RectTransform.
float GetPreferredHeight(RectTransform rect)
Parameters
Returns
float The preferred height.
Description
Gets the preferred height of the RectTransform.
float GetFlexibleWidth(RectTransform rect)
Parameters
Returns
float The flexible width.
Description
Gets the flexible width of the RectTransform.
float GetFlexibleHeight(RectTransform rect)
Parameters
Returns
float The flexible height.
Description
Gets the flexible height of the RectTransform.
List<List<T>> Transpose<T>(List<List<T>> group)
Parameters
List<List<T>> |
group |
Group. |
Description
Transpose the specified group.
|