Property | Type | Description | |
---|---|---|---|
columns | int | ||
direction | Direction, | ||
hideInactive | bool | ||
keepWithinPanel | bool | ||
onReposition | OnReposition | ||
padding | Vector2 | ||
sorted | bool |
Property | Type | Description | |
---|---|---|---|
mChildren | List |
||
mInitDone | bool | ||
mPanel | UIPanel, | ||
mReposition | bool |
Method | Description | |
---|---|---|
Init ( ) : void |
Find the necessary components.
|
|
LateUpdate ( ) : void |
Is it time to reposition? Do so now.
|
|
RepositionVariableSize ( List |
Positions the grid items, taking their own size into consideration.
|
|
Sort ( List |
Want your own custom sorting logic? Override this function.
|
|
SortByName ( Transform a, Transform b ) : int |
Function that sorts items by name.
|
|
Start ( ) : void |
Position the grid's contents when the script starts.
|
Method | Description | |
---|---|---|
Reposition ( ) : void |
protected RepositionVariableSize ( List |
||
children | List |
|
return | void |
static protected SortByName ( Transform a, Transform b ) : int | ||
a | Transform | |
b | Transform | |
return | int |