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

IndexPinchSafeReleaseSelector Class

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

Properties

IHand Hand[Get]
bool SelectOnRelease[Get]
float SafeReleaseThreshold[Get]

Fields

Turns true when the hand is pinching, then goes back to false only if the hand releases the pinch with the index finger extended.

Events

Action WhenSelected
Action WhenUnselected

Protected Fields

bool _started[Get]

Protected Functions

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

Member Functions

void Cancel ( )
void InjectAllIndexPinchSafeReleaseSelector
( IHand hand )
void InjectSelectOnRelease
( bool selectOnRelease )
void InjectHand
( IHand hand )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon