API reference
API reference
Select your platform
No SDKs available
No versions available

Toggle Class

This is a MonoBehaviour for the toggle UI element which the icon image can be customized (not a switch).
It's can be used for certain toggle buttons for Immersive Debugger UIs. For more info about Immersive Debugger, check out the official doc

Properties

State : bool
[Get][Set]
State of the toggle, the style will be set respectively for on and off states.
Signature
bool State
StateChanged : Action< bool >
[Get][Set]
The event that would be invoked when the state is changed by setting the State property.
Signature
Action<bool> StateChanged

Protected Methods

UpdateBackground ()
Signature
override void UpdateBackground()
Returns
override void
UpdateIcon ()
Signature
override void UpdateIcon()
Returns
override void