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

ActiveStateSelector Class

Extends MonoBehaviour
Selects and unselects based on the provided ActiveState.
If this component is piped into the Interactor<TInteractor, TInteractable>.Selector property of an interactor, it can replace the selection mechanism (trigger pulls, pinch or grab poses, etc.) with any other mechanism which can be represented as an IActiveState.

Protected Properties

ActiveState : IActiveState
[Get]
Signature
IActiveState Oculus.Interaction.ActiveStateSelector.ActiveState

Events

WhenSelected : Action
Implementation of ISelector.WhenSelected; for details, please refer to the related documentation provided for that interface.
Signature
Action Oculus.Interaction.ActiveStateSelector.WhenSelected
WhenUnselected : Action
Implementation of ISelector.WhenUnselected; for details, please refer to the related documentation provided for that interface.
Signature
Action Oculus.Interaction.ActiveStateSelector.WhenUnselected

Protected Methods

Awake ()
Signature
virtual void Oculus.Interaction.ActiveStateSelector.Awake()
Returns
void
Start ()
Signature
virtual void Oculus.Interaction.ActiveStateSelector.Start()
Returns
void
Update ()
Signature
virtual void Oculus.Interaction.ActiveStateSelector.Update()
Returns
void

Methods

InjectActiveState ( activeState )
Sets the underlying IActiveState for a dynamically-allocated ActiveStateSelector instance.
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.ActiveStateSelector.InjectActiveState(IActiveState activeState)
Parameters
activeState: IActiveState
Returns
void
InjectAllActiveStateSelector ( activeState )
Wrapper for InjectActiveState(IActiveState) for injecting the required dependencies to a dynamically-allocated ActiveStateSelector instance.
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.ActiveStateSelector.InjectAllActiveStateSelector(IActiveState activeState)
Parameters
activeState: IActiveState
Returns
void