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

ActiveStateSelector Class

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

Properties

IActiveState ActiveState[Get]

Events

Implementation of ISelector.WhenSelected; for details, please refer to the related documentation provided for that interface.
Implementation of ISelector.WhenUnselected; for details, please refer to the related documentation provided for that interface.

Protected Functions

virtual void Awake ( )
virtual void Start ( )
virtual void Update ( )

Member Functions

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.
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.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon