API reference

ActiveStateGate Class

Extends MonoBehaviour
Implements IActiveState
Returns true when the Open Selector is true.
Returns false when the Close Selector is true. Often used in pose recognition.

Protected Fields

_started : bool
Signature
bool _started

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

Protected Methods

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

Methods

InjectAllActiveStateGate ( openSelector , closeSelector )
Signature
void InjectAllActiveStateGate(ISelector openSelector, ISelector closeSelector)
Parameters
openSelector: ISelector
closeSelector: ISelector
Returns
void
InjectCloseState ( closeSelector )
Signature
void InjectCloseState(ISelector closeSelector)
Parameters
closeSelector: ISelector
Returns
void
InjectOpenState ( openSelector )
Signature
void InjectOpenState(ISelector openSelector)
Parameters
openSelector: ISelector
Returns
void