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 Active[Get]

Events

Action WhenSelected
Action WhenUnselected

Protected Fields

bool _started[Get]

Protected Functions

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

Member Functions

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