C# Class UIToggle, TheUnseen

Inheritance: MonoBehaviour
Mostra file Open project: henryj41043/TheUnseen Class Usage Examples

Public Properties

Property Type Description
activeAnimation Animation
activeSprite UIWidget,
current UIToggle,
group int
instantTween bool
list BetterList
onChange List
optionCanBeNone bool
startsActive bool

Private Properties

Property Type Description
OnClick void
OnDisable void
OnEnable void
Set void
Start void

Public Methods

Method Description
GetActiveToggle ( int group ) : UIToggle,

Return the first active toggle within the specified group.

Private Methods

Method 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 method

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

Property Details

activeAnimation public_oe property

Animation to play on the active sprite, if any.
public Animation activeAnimation
return Animation

activeSprite public_oe property

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

current static_oe public_oe property

Current toggle that sent a state change notification.
static public UIToggle, current
return 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
return int

instantTween public_oe property

If checked, tween-based transition will be instant instead.
public bool instantTween
return bool

list static_oe public_oe property

List of all the active toggles currently in the scene.
static public BetterList list
return BetterList

onChange public_oe property

Callbacks triggered when the toggle's state changes.
public List onChange
return List

optionCanBeNone public_oe property

Can the radio button option be 'none'?
public bool optionCanBeNone
return bool

startsActive public_oe property

Whether the toggle starts checked.
public bool startsActive
return bool