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

TogglerActiveState Class

Extends MonoBehaviour, IActiveState
ActiveState driven by an UI Toggle.isOn.

Properties

Evaluates the current state of the component and returns whether it is active.
The logic for determining the active state is defined by the implementing class. This method is typically used in interaction scripts to check whether a certain condition is met before triggering an event or action. For example implementations, please refer to HandActiveState.Active and ActiveStateGroup.Active.
Returns
Returns true if the component is currently active; otherwise, returns false.

Protected Fields

bool _started[Get]

Protected Functions

virtual void Start ( )

Member Functions

void InjectAllTogglerActiveState
( Toggle toggle )
void InjectAllToggle
( Toggle toggle )
Did you find this page helpful?