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

IndexPinchSafeReleaseSelector Class

Extends MonoBehaviour
This Selector selects for a frame when the Pinch is released, as opposed to when it is pinching.
It uses the system pinch (index and thumb) but due to some false-positives with pinch detection, to establish that a pinch has released the index must be not pinching and be extended.

Protected Fields

_started : bool
Signature
bool Oculus.Interaction.IndexPinchSafeReleaseSelector._started

Properties

Active : bool
[Get]
Signature
bool Oculus.Interaction.IndexPinchSafeReleaseSelector.Active
Hand : IHand
[Get]
Signature
IHand Oculus.Interaction.IndexPinchSafeReleaseSelector.Hand
SafeReleaseThreshold : float
[Get][Set]
Signature
float Oculus.Interaction.IndexPinchSafeReleaseSelector.SafeReleaseThreshold
SelectOnRelease : bool
[Get][Set]
Signature
bool Oculus.Interaction.IndexPinchSafeReleaseSelector.SelectOnRelease

Events

WhenSelected : Action
Signature
Action Oculus.Interaction.IndexPinchSafeReleaseSelector.WhenSelected
WhenUnselected : Action
Signature
Action Oculus.Interaction.IndexPinchSafeReleaseSelector.WhenUnselected

Protected Methods

Awake ()
Signature
virtual void Oculus.Interaction.IndexPinchSafeReleaseSelector.Awake()
Returns
void
IsIndexExtended ()
Signature
virtual bool Oculus.Interaction.IndexPinchSafeReleaseSelector.IsIndexExtended()
Returns
bool
OnDisable ()
Signature
virtual void Oculus.Interaction.IndexPinchSafeReleaseSelector.OnDisable()
Returns
void
OnEnable ()
Signature
virtual void Oculus.Interaction.IndexPinchSafeReleaseSelector.OnEnable()
Returns
void
Start ()
Signature
virtual void Oculus.Interaction.IndexPinchSafeReleaseSelector.Start()
Returns
void

Methods

Cancel ()
Signature
void Oculus.Interaction.IndexPinchSafeReleaseSelector.Cancel()
Returns
void
InjectAllIndexPinchSafeReleaseSelector ( hand )
Signature
void Oculus.Interaction.IndexPinchSafeReleaseSelector.InjectAllIndexPinchSafeReleaseSelector(IHand hand)
Parameters
hand: IHand
Returns
void
InjectHand ( hand )
Signature
void Oculus.Interaction.IndexPinchSafeReleaseSelector.InjectHand(IHand hand)
Parameters
hand: IHand
Returns
void
InjectSelectOnRelease ( selectOnRelease )
Signature
void Oculus.Interaction.IndexPinchSafeReleaseSelector.InjectSelectOnRelease(bool selectOnRelease)
Parameters
selectOnRelease: bool
Returns
void