API reference

IActiveStateModel Interface

Defines a model for managing hierarchical relationships between active states in the Interaction SDK.
This interface is primarily used for debugging and visualization of active state hierarchies.
This interface is used in conjunction with the pose detection and debugging systems to:
  • Expose parent-child relationships between active states
  • Enable debugging visualization of state hierarchies
  • Support different types of active state implementations through the generic ActiveStateModel
See Oculus.Interaction.PoseDetection.Debug.ActiveStateModel<TActiveState> for the base implementation.

Methods

GetChildren ( activeState )
Retrieves all child active states associated with the given parent active state.
Signature
IEnumerable<IActiveState> Oculus.Interaction.PoseDetection.Debug.IActiveStateModel.GetChildren(IActiveState activeState)
Parameters
activeState: IActiveState  The parent IActiveState to get children for.
Returns
IEnumerable< IActiveState >  An enumerable collection of child active states. Returns empty if no children exist or if the activeState is not of the expected type.
GetChildrenAsync ( activeState )
Retrieves all child active states associated with the given parent active state.
Signature
Task<IEnumerable<IActiveState> > Oculus.Interaction.PoseDetection.Debug.IActiveStateModel.GetChildrenAsync(IActiveState activeState)
Parameters
activeState: IActiveState  The parent IActiveState to get children for.
Returns
Task< IEnumerable< IActiveState > >  An enumerable collection of child active states. Returns empty if no children exist or if the activeState is not of the expected type.