Project Arrhythmia
A video game developed by Vitamin Games.
Loading...
Searching...
No Matches
FlowLayoutGroup Class Reference

Layout Group controller that arranges children in rows, fitting as many on a line until total width exceeds parent bounds. More...

+ Inheritance diagram for FlowLayoutGroup:

Public Member Functions

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 ()
 

Public Attributes

float Spacing = 0f
 
bool ChildForceExpandWidth = false
 
bool ChildForceExpandHeight = false
 

Protected Member Functions

void LayoutRow (IList< RectTransform > contents, float rowWidth, float rowHeight, float maxWidth, float xOffset, float yOffset, int axis)
 

Properties

bool IsCenterAlign [get]
 
bool IsRightAlign [get]
 
bool IsMiddleAlign [get]
 
bool IsLowerAlign [get]
 

Private Member Functions

float CalculateRowVerticalOffset (float groupHeight, float yOffset, float currentRowHeight)
 

Private Attributes

float _layoutHeight
 
readonly IList< RectTransform > _rowList = new List<RectTransform>()
 Holds the rects that will make up the current row being processed.
 

Detailed Description

Layout Group controller that arranges children in rows, fitting as many on a line until total width exceeds parent bounds.

Member Function Documentation

◆ SetLayout()

float FlowLayoutGroup.SetLayout ( float width,
int axis,
bool layoutInput )

Main layout method.

Parameters
widthWidth to calculate the layout with
axis0 for horizontal axis, 1 for vertical
layoutInputIf 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: