C# Класс UITable, TheUnseen

Наследование: UIWidgetContainer
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
columns int
direction Direction,
hideInactive bool
keepWithinPanel bool
onReposition OnReposition
padding Vector2
sorted bool

Защищенные свойства (Protected)

Свойство Тип Описание
mChildren List
mInitDone bool
mPanel UIPanel,
mReposition bool

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
Reposition ( ) : void

Описание методов

Init() защищенный Метод

Find the necessary components.
protected Init ( ) : void
Результат void

LateUpdate() защищенный Метод

Is it time to reposition? Do so now.
protected LateUpdate ( ) : void
Результат void

RepositionVariableSize() защищенный Метод

Positions the grid items, taking their own size into consideration.
protected RepositionVariableSize ( List children ) : void
children List
Результат void

Sort() защищенный Метод

Want your own custom sorting logic? Override this function.
protected Sort ( List list ) : void
list List
Результат void

SortByName() статический защищенный Метод

Function that sorts items by name.
static protected SortByName ( Transform a, Transform b ) : int
a Transform
b Transform
Результат int

Start() защищенный Метод

Position the grid's contents when the script starts.
protected Start ( ) : void
Результат void

Описание свойств

columns публичное свойство

How many columns there will be before a new line is started. 0 means unlimited.
public int columns
Результат int

direction публичное свойство

Which way the new lines will be added.
public Direction, direction
Результат Direction,

hideInactive публичное свойство

Whether inactive children will be discarded from the table's calculations.
public bool hideInactive
Результат bool

keepWithinPanel публичное свойство

Whether the parent container will be notified of the table's changes.
public bool keepWithinPanel
Результат bool

mChildren защищенное свойство

protected List mChildren
Результат List

mInitDone защищенное свойство

protected bool mInitDone
Результат bool

mPanel защищенное свойство

protected UIPanel, mPanel
Результат UIPanel,

mReposition защищенное свойство

protected bool mReposition
Результат bool

onReposition публичное свойство

Delegate function that will be called when the table repositions its content.
public OnReposition onReposition
Результат OnReposition

padding публичное свойство

Padding around each entry, in pixels.
public Vector2 padding
Результат Vector2

sorted публичное свойство

Whether the table's contents will be sorted alphabetically.
public bool sorted
Результат bool