C# Class UnityEngine.UI.HorizontalOrVerticalLayoutGroup

Abstract base class for HorizontalLayoutGroup and VerticalLayoutGroup.

Inheritance: LayoutGroup
Mostra file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Protected Methods

Method Description
CalcAlongAxis ( int axis, bool isVertical ) : void

Calculate the layout element properties for this layout element along the given axis.

HorizontalOrVerticalLayoutGroup ( ) : System
Reset ( ) : void
SetChildrenAlongAxis ( int axis, bool isVertical ) : void

Set the positions and sizes of the child layout elements for the given axis.

Private Methods

Method Description
GetChildSizes ( RectTransform child, int axis, bool controlSize, bool childForceExpand, float &min, float &preferred, float &flexible ) : void

Method Details

CalcAlongAxis() protected method

Calculate the layout element properties for this layout element along the given axis.

protected CalcAlongAxis ( int axis, bool isVertical ) : void
axis int The axis to calculate for. 0 is horizontal and 1 is vertical.
isVertical bool Is this group a vertical group?
return void

HorizontalOrVerticalLayoutGroup() protected method

protected HorizontalOrVerticalLayoutGroup ( ) : System
return System

Reset() protected method

protected Reset ( ) : void
return void

SetChildrenAlongAxis() protected method

Set the positions and sizes of the child layout elements for the given axis.

protected SetChildrenAlongAxis ( int axis, bool isVertical ) : void
axis int The axis to handle. 0 is horizontal and 1 is vertical.
isVertical bool Is this group a vertical group?
return void