C# Класс UIGrid, TheUnseen

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

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

Свойство Тип Описание
animateSmoothly bool
arrangement Arrangement,
cellHeight float
cellWidth float
hideInactive bool
keepWithinPanel bool
maxPerLine int
onReposition OnReposition
sorted bool

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

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

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

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

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

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

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

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

protected Init ( ) : void
Результат void

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

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

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

static protected SortByName ( Transform a, Transform b ) : int
a Transform
b Transform
Результат int

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

protected Start ( ) : void
Результат void

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

protected Update ( ) : void
Результат void

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

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

Whether the grid will smoothly animate its children into the correct place.
public bool animateSmoothly
Результат bool

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

Type of arrangement -- vertical or horizontal.
public Arrangement, arrangement
Результат Arrangement,

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

The height of each of the cells.
public float cellHeight
Результат float

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

The width of each of the cells.
public float cellWidth
Результат float

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

Whether to ignore the disabled children or to treat them as being present.
public bool hideInactive
Результат bool

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

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

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

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

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

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

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

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

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

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
Результат int

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

Callback triggered when the grid repositions its contents.
public OnReposition onReposition
Результат OnReposition

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

Whether the children will be sorted alphabetically prior to repositioning.
public bool sorted
Результат bool