Script documentation
Toggle.cs in TinyGiantStudio.Text namespace
If anything except method names starts with a capital letter, it's a property.
Variables
Variable | Type | Description |
---|---|---|
IsOn | bool | |
onGraphic | GameObject | |
offGraphic | GameObject | |
onEvent | UnityEvent | |
offEvent | UnityEvent |
Methods
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. |
Version History
v4.0.0 (May 4, 2023)
Method Toggle
renamed to ToggleState
Last updated