C# Class UIToggle, TheUnseen

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

Méthodes publiques

Свойство Type Description
activeAnimation Animation
activeSprite UIWidget,
current UIToggle,
group int
instantTween bool
list BetterList
onChange List
optionCanBeNone bool
startsActive bool

Private Properties

Свойство Type Description
OnClick void
OnDisable void
OnEnable void
Set void
Start void

Méthodes publiques

Méthode Description
GetActiveToggle ( int group ) : UIToggle,

Return the first active toggle within the specified group.

Private Methods

Méthode Description
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.

Method Details

GetActiveToggle() static public méthode

Return the first active toggle within the specified group.
static public GetActiveToggle ( int group ) : UIToggle,
group int
Résultat UIToggle,

Property Details

activeAnimation public_oe property

Animation to play on the active sprite, if any.
public Animation activeAnimation
Résultat Animation

activeSprite public_oe property

Sprite that's visible when the 'isActive' status is 'true'.
public UIWidget, activeSprite
Résultat UIWidget,

current static_oe public_oe property

Current toggle that sent a state change notification.
static public UIToggle, current
Résultat UIToggle,

group public_oe property

If set to anything other than '0', all active toggles in this group will behave as radio buttons.
public int group
Résultat int

instantTween public_oe property

If checked, tween-based transition will be instant instead.
public bool instantTween
Résultat bool

list static_oe public_oe property

List of all the active toggles currently in the scene.
static public BetterList list
Résultat BetterList

onChange public_oe property

Callbacks triggered when the toggle's state changes.
public List onChange
Résultat List

optionCanBeNone public_oe property

Can the radio button option be 'none'?
public bool optionCanBeNone
Résultat bool

startsActive public_oe property

Whether the toggle starts checked.
public bool startsActive
Résultat bool