True if the toggle is on (for example, checked).
Reference to an entity with a Sprite2DRenderer component that represents the button's toggle's state. Mouse/touch interaction, captured by the MouseInteraction component, swaps or modifies the sprite based on the type of transitions you apply. If this is set to NONE, it assumes that the underlying entity (the one that the Toggle component is attached to) also has a Sprite2DRenderer component, and uses that.
Reference to an entity that defines visual transitions based on mouse/ touch interaction captured by the MouseInteraction component. For example, A SpriteTransition or ColorTintTransition component. Used when isOn is true.
Reference to an entity that defines visual transitions based on mouse/ touch interaction captured by the MouseInteraction component. For example, A SpriteTransition or ColorTintTransition component. Used when isOn is false.
Generated using TypeDoc
Component for toggle buttons.