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

ActiveStateToggle Class

Extends MonoBehaviour
Implements IActiveState

Properties

Active : bool
[Get]
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.
Signature
bool Active
Precedence : StatePrecedence
[Get][Set]
Signature
StatePrecedence Precedence

Protected Methods

Awake ()
Signature
virtual void Awake()
Returns
void
Start ()
Signature
virtual void Start()
Returns
void

Methods

InjectAllActiveStateToggle ( on , off )
Signature
void InjectAllActiveStateToggle(IActiveState on, IActiveState off)
Parameters
Returns
void
InjectOff ( activeState )
Signature
void InjectOff(IActiveState activeState)
Parameters
activeState: IActiveState
Returns
void
InjectOn ( activeState )
Signature
void InjectOn(IActiveState activeState)
Parameters
activeState: IActiveState
Returns
void

Inner Enum

StatePrecedence Enum

Enumeration Constants

Member
On
Off