C# Class UITable, TheUnseen

Inheritance: UIWidgetContainer
Afficher le fichier Open project: henryj41043/TheUnseen Class Usage Examples

Méthodes publiques

Свойство Type Description
columns int
direction Direction,
hideInactive bool
keepWithinPanel bool
onReposition OnReposition
padding Vector2
sorted bool

Protected Properties

Свойство Type Description
mChildren List
mInitDone bool
mPanel UIPanel,
mReposition bool

Méthodes protégées

Méthode Description
Init ( ) : void

Find the necessary components.

LateUpdate ( ) : void

Is it time to reposition? Do so now.

RepositionVariableSize ( List children ) : void

Positions the grid items, taking their own size into consideration.

Sort ( List list ) : void

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.

Private Methods

Méthode Description
Reposition ( ) : void

Method Details

Init() protected méthode

Find the necessary components.
protected Init ( ) : void
Résultat void

LateUpdate() protected méthode

Is it time to reposition? Do so now.
protected LateUpdate ( ) : void
Résultat void

RepositionVariableSize() protected méthode

Positions the grid items, taking their own size into consideration.
protected RepositionVariableSize ( List children ) : void
children List
Résultat void

Sort() protected méthode

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

SortByName() static protected méthode

Function that sorts items by name.
static protected SortByName ( Transform a, Transform b ) : int
a Transform
b Transform
Résultat int

Start() protected méthode

Position the grid's contents when the script starts.
protected Start ( ) : void
Résultat void

Property Details

columns public_oe property

How many columns there will be before a new line is started. 0 means unlimited.
public int columns
Résultat int

direction public_oe property

Which way the new lines will be added.
public Direction, direction
Résultat Direction,

hideInactive public_oe property

Whether inactive children will be discarded from the table's calculations.
public bool hideInactive
Résultat bool

keepWithinPanel public_oe property

Whether the parent container will be notified of the table's changes.
public bool keepWithinPanel
Résultat bool

mChildren protected_oe property

protected List mChildren
Résultat List

mInitDone protected_oe property

protected bool mInitDone
Résultat bool

mPanel protected_oe property

protected UIPanel, mPanel
Résultat UIPanel,

mReposition protected_oe property

protected bool mReposition
Résultat bool

onReposition public_oe property

Delegate function that will be called when the table repositions its content.
public OnReposition onReposition
Résultat OnReposition

padding public_oe property

Padding around each entry, in pixels.
public Vector2 padding
Résultat Vector2

sorted public_oe property

Whether the table's contents will be sorted alphabetically.
public bool sorted
Résultat bool