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

ActiveStateGroup Class

Extends MonoBehaviour
Manages a collection of IActiveState instances and evaluates their combined state using a specified logical operator.
This class is used to aggregate multiple active states, enabling complex interaction logic by combining various conditions.

Properties

Active : bool
[Get]
Evaluates the combined state of all active states in the group based on the specified logical operator to determine if the group should be considered active.
Signature
bool Oculus.Interaction.ActiveStateGroup.Active

Protected Methods

Awake ()
Signature
virtual void Oculus.Interaction.ActiveStateGroup.Awake()
Returns
void
Start ()
Signature
virtual void Oculus.Interaction.ActiveStateGroup.Start()
Returns
void

Methods

InjectActiveStates ( activeStates )
Injects a list of IActiveState states into the group and converts them for internal use.
Signature
void Oculus.Interaction.ActiveStateGroup.InjectActiveStates(List< IActiveState > activeStates)
Parameters
activeStates: List< IActiveState >  The list of active states to set.
Returns
void
InjectAllActiveStateGroup ( activeStates )
Injects a list of IActiveState states into the group.
Signature
void Oculus.Interaction.ActiveStateGroup.InjectAllActiveStateGroup(List< IActiveState > activeStates)
Parameters
activeStates: List< IActiveState >  The list of active states to inject.
Returns
void
InjectOptionalLogicOperator ( logicOperator )
Injects an optional logic operator into the ActiveStateGroup.
This operator is used to determine how the individual active states in the group should be combined to evaluate the group's overall active state
Signature
void Oculus.Interaction.ActiveStateGroup.InjectOptionalLogicOperator(ActiveStateGroupLogicOperator logicOperator)
Parameters
logicOperator: ActiveStateGroupLogicOperator  The logic operator to be applied to the group's active state.
Returns
void

Inner Enum

ActiveStateGroupLogicOperator Enum

Defines the logical operators that can be applied to the active states within the group.
Each operator changes how the group's active state is determined. This can define whether all states must be active (AND), any state must be active (OR), or if exactly one state must be active (XOR)

Enumeration Constants

MemberValue
AND
0
OR
1
XOR
2