namespace UnityEngine.UI
{
[AddComponentMenu("Layout/Horizontal Flow Layout Group", 154)]
///
/// Layout class for arranging child elements side by side.
///
public class HorizontalFlowLayoutGroup : AbstractFlowLayoutGroup
{
protected HorizontalFlowLayoutGroup()
{ }
///
/// Called by the layout system. Also see ILayoutElement
///
public override void CalculateLayoutInputHorizontal()
{
base.CalculateLayoutInputHorizontal();
CalcAlongAxis(0, false);
CalcAlongAxis(1, false); // new
}
///
/// Called by the layout system. Also see ILayoutElement
///
public override void CalculateLayoutInputVertical()
{
CalcAlongAxis(0, false); // new
CalcAlongAxis(1, false);
}
///
/// Called by the layout system. Also see ILayoutElement
///
public override void SetLayoutHorizontal()
{
SetChildrenAlongAxis(0, false);
SetChildrenAlongAxis(1, false); // new
}
///
/// Called by the layout system. Also see ILayoutElement
///
public override void SetLayoutVertical()
{
SetChildrenAlongAxis(0, false); // new
SetChildrenAlongAxis(1, false);
}
}
}