namespace UnityEngine.UI
{
[AddComponentMenu("Layout/Vertical Layout Group", 151)]
///
/// Layout child layout elements below each other.
///
public class VerticalLayoutGroup : HorizontalOrVerticalLayoutGroup
{
protected VerticalLayoutGroup()
{}
///
/// Called by the layout system. Also see ILayoutElement
///
public override void CalculateLayoutInputHorizontal()
{
base.CalculateLayoutInputHorizontal();
CalcAlongAxis(0, true);
}
///
/// Called by the layout system. Also see ILayoutElement
///
public override void CalculateLayoutInputVertical()
{
CalcAlongAxis(1, true);
}
///
/// Called by the layout system. Also see ILayoutElement
///
public override void SetLayoutHorizontal()
{
SetChildrenAlongAxis(0, true);
}
///
/// Called by the layout system. Also see ILayoutElement
///
public override void SetLayoutVertical()
{
SetChildrenAlongAxis(1, true);
}
}
}