Script documentation
Toggle.cs in TinyGiantStudio.Text namespace
Last updated
Toggle.cs in TinyGiantStudio.Text namespace
Last updated
IsOn
bool
onGraphic
GameObject
offGraphic
GameObject
onEvent
UnityEvent
offEvent
UnityEvent
Set (bool set)
Sets the isOn state of the toggle according to the bool passed.
ToggleState ()
Switches between on and off.
CallToggleEvent ()
Just calls the event depending on the current state of the Toggle(on/off).
VisualUpdate ()
Just updates the visual depending on the current state of the Toggle(on/off).
ActiveVisualUpdate ()
Changes the graphic to activated.
InactiveVisualUpdate ()
Changes the graphic to inactivate.