API reference

InteractorActiveState Class

Extends MonoBehaviour
Presents an interactor's state as an IActiveState, which will become active when selected propert(ies) of an IInteractor are recognized.

Properties

Active : bool
[Get]
When any of these conditions in Property are met, this IActiveState will become Active.
Signature
bool Oculus.Interaction.InteractorActiveState.Active
[Get][Set]
The InteractorProperty that will be tested against.
Signature
InteractorProperty Oculus.Interaction.InteractorActiveState.Property

Protected Methods

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

Methods

InjectAllInteractorActiveState ( interactor )
Injects all required dependencies for a dynamically instantiated InteractorActiveState.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Signature
void Oculus.Interaction.InteractorActiveState.InjectAllInteractorActiveState(IInteractor interactor)
Parameters
interactor: IInteractor
Returns
void
InjectInteractor ( interactor )
Sets the underlying IInteractor for a dynamically instantiated InteractorActiveState.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Signature
void Oculus.Interaction.InteractorActiveState.InjectInteractor(IInteractor interactor)
Parameters
interactor: IInteractor
Returns
void

Inner Enum

InteractorProperty Enum

The property of the IInteractor to track with the InteractorActiveState

Enumeration Constants

MemberValueDescription
HasCandidate
1 << 0
Does the interactor have a candidate
HasInteractable
1 << 1
Does the interactor have an interactable
IsSelecting
1 << 2
Is the interactor selecting
HasSelectedInteractable
1 << 3
Does the interactor have a selected interactable
IsNormal
1 << 4
Is the interactor in the InteractorState.Normal state
IsHovering
1 << 5
Is the interactor in the InteractorState.Hover state
IsDisabled
1 << 6
Is the interactor in the InteractorState.Select state