Skip to content

Button Toggler

eisclimber edited this page Jan 18, 2024 · 1 revision

Button Toggler

class in ExPresSXR.Misc / Extends MonoBehavior
Component added via Component Menu

Description

Adds toggle behavior to a UnityEngine.UI.Button.

Members

Public Properties

  • bool pressed: If the toggle is pressed or not.

Public Methods

Events

  • ToggledChangedEvent OnToggleChanged: Will be emitted when the button is toggled while passing the new toggled state of the attached button.

Custom Serializable Class

  • ToggledChangedEvent : UnityEvent<bool>: Class representing a serializable Unity that passes a boolean (if the button is toggled down).

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally