C# Класс UIToggle, TheUnseen

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

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

Свойство Тип Описание
activeAnimation Animation
activeSprite UIWidget,
current UIToggle,
group int
instantTween bool
list BetterList
onChange List
optionCanBeNone bool
startsActive bool

Private Properties

Свойство Тип Описание
OnClick void
OnDisable void
OnEnable void
Set void
Start void

Открытые методы

Метод Описание
GetActiveToggle ( int group ) : UIToggle,

Return the first active toggle within the specified group.

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

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

Check or uncheck on click.

OnDisable ( ) : void
OnEnable ( ) : void
Set ( bool state ) : void

Fade out or fade in the active sprite and notify the OnChange event listener.

Start ( ) : void

Activate the initial state.

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

GetActiveToggle() статический публичный Метод

Return the first active toggle within the specified group.
static public GetActiveToggle ( int group ) : UIToggle,
group int
Результат UIToggle,

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

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

Animation to play on the active sprite, if any.
public Animation activeAnimation
Результат Animation

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

Sprite that's visible when the 'isActive' status is 'true'.
public UIWidget, activeSprite
Результат UIWidget,

current статическое публичное свойство

Current toggle that sent a state change notification.
static public UIToggle, current
Результат UIToggle,

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

If set to anything other than '0', all active toggles in this group will behave as radio buttons.
public int group
Результат int

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

If checked, tween-based transition will be instant instead.
public bool instantTween
Результат bool

list статическое публичное свойство

List of all the active toggles currently in the scene.
static public BetterList list
Результат BetterList

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

Callbacks triggered when the toggle's state changes.
public List onChange
Результат List

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

Can the radio button option be 'none'?
public bool optionCanBeNone
Результат bool

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

Whether the toggle starts checked.
public bool startsActive
Результат bool