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

Switch Class

This is a MonoBehaviour for the switch UI element.
It's used for the boolean debug data's tweaking in the Inspector panel of Immersive Debugger. For more info about Immersive Debugger, check out the official doc

Properties

State : bool
[Get][Set]
State of the switch, 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

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