C# Class UIGrid, TheUnseen

Inheritance: UIWidgetContainer
ファイルを表示 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_oe property

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

arrangement public_oe property

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

cellHeight public_oe property

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

cellWidth public_oe property

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

hideInactive public_oe property

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

keepWithinPanel public_oe property

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

mInitDone protected_oe property

protected bool mInitDone
return bool

mPanel protected_oe property

protected UIPanel, mPanel
return UIPanel,

mReposition protected_oe property

protected bool mReposition
return bool

maxPerLine public_oe 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_oe property

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

sorted public_oe property

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