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

IndexPinchSafeReleaseSelector Class

Extends MonoBehaviour
Implements ISelector, IActiveState
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 _started

Properties

Active : bool
[Get]
Turns true when the hand is pinching, then goes back to false only if the hand releases the pinch with the index finger extended.
Signature
bool Active
Hand : IHand
[Get]
Signature
IHand Hand
SafeReleaseThreshold : float
[Get][Set]
Signature
float SafeReleaseThreshold
SelectOnRelease : bool
[Get][Set]
Signature
bool SelectOnRelease

Events

WhenSelected : Action
Signature
Action WhenSelected
WhenUnselected : Action
Signature
Action WhenUnselected

Protected Methods

Awake ()
Signature
virtual void Awake()
Returns
void
IsIndexExtended ()
Signature
virtual bool IsIndexExtended()
Returns
bool
OnDisable ()
Signature
virtual void OnDisable()
Returns
void
OnEnable ()
Signature
virtual void OnEnable()
Returns
void
Start ()
Signature
virtual void Start()
Returns
void

Methods

Cancel ()
Signature
void Cancel()
Returns
void
InjectAllIndexPinchSafeReleaseSelector ( hand )
Signature
void InjectAllIndexPinchSafeReleaseSelector(IHand hand)
Parameters
hand: IHand
Returns
void
InjectHand ( hand )
Signature
void InjectHand(IHand hand)
Parameters
hand: IHand
Returns
void
InjectSelectOnRelease ( selectOnRelease )
Signature
void InjectSelectOnRelease(bool selectOnRelease)
Parameters
selectOnRelease: bool
Returns
void