C# Class UIGrid, TheUnseen

Inheritance: UIWidgetContainer
Show file Open project: henryj41043/TheUnseen Class Usage Examples

Public Properties

Property Type Description
animateSmoothly bool
arrangement Arrangement,
cellHeight float
cellWidth float
hideInactive bool
keepWithinPanel bool
maxPerLine int
onReposition OnReposition
sorted bool

Protected Properties

Property Type Description
mInitDone bool
mPanel UIPanel,
mReposition bool

Protected Methods

Method Description
Init ( ) : void
Sort ( List list ) : void

Want your own custom sorting logic? Override this function.

SortByName ( Transform a, Transform b ) : int
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
Reposition ( ) : void

Method Details

Init() protected method

protected Init ( ) : void
return void

Sort() protected method

Want your own custom sorting logic? Override this function.
protected Sort ( List list ) : void
list List
return void

SortByName() static protected method

static protected SortByName ( Transform a, Transform b ) : int
a Transform
b Transform
return int

Start() protected method

protected Start ( ) : void
return void

Update() protected method

protected Update ( ) : void
return void

Property Details

animateSmoothly public property

Whether the grid will smoothly animate its children into the correct place.
public bool animateSmoothly
return bool

arrangement public property

Type of arrangement -- vertical or horizontal.
public Arrangement, arrangement
return Arrangement,

cellHeight public property

The height of each of the cells.
public float cellHeight
return float

cellWidth public property

The width of each of the cells.
public float cellWidth
return float

hideInactive public property

Whether to ignore the disabled children or to treat them as being present.
public bool hideInactive
return bool

keepWithinPanel public property

Whether the parent container will be notified of the grid's changes.
public bool keepWithinPanel
return bool

mInitDone protected property

protected bool mInitDone
return bool

mPanel protected property

protected UIPanel, mPanel
return UIPanel,

mReposition protected property

protected bool mReposition
return bool

maxPerLine public property

Maximum children per line. If the arrangement is horizontal, this denotes the number of columns. If the arrangement is vertical, this stands for the number of rows.
public int maxPerLine
return int

onReposition public property

Callback triggered when the grid repositions its contents.
public OnReposition onReposition
return OnReposition

sorted public property

Whether the children will be sorted alphabetically prior to repositioning.
public bool sorted
return bool