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

ActiveStateGroup Class

Extends MonoBehaviour, IActiveState
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.

Member Enumerations

Enumeration ActiveStateGroupLogicOperator

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)
AND
= 0
OR
= 1
XOR
= 2

Properties

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.

Protected Functions

virtual void Awake ( )
virtual void Start ( )

Member Functions

Injects a list of IActiveState states into the group.
Parameters
activeStates
The list of active states to inject.
Injects a list of IActiveState states into the group and converts them for internal use.
Parameters
activeStates
The list of active states to set.
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
Parameters
logicOperator
The logic operator to be applied to the group's active state.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon