Tanoda
Leap.Unity.ExtendedFingerDetector Class Reference
Inheritance diagram for Leap.Unity.ExtendedFingerDetector:
Leap.Unity.Detector

Public Attributes

float Period = .1f
 
HandModelBase HandModel = null
 
PointingState Thumb = PointingState.Either
 
PointingState Index = PointingState.Either
 
PointingState Middle = PointingState.Either
 
PointingState Ring = PointingState.Either
 
PointingState Pinky = PointingState.Either
 
int MinimumExtendedCount = 0
 
int MaximumExtendedCount = 5
 
bool ShowGizmos = true
 
- Public Attributes inherited from Leap.Unity.Detector
UnityEvent OnActivate
 
UnityEvent OnDeactivate
 

Additional Inherited Members

- Public Member Functions inherited from Leap.Unity.Detector
virtual void Activate ()
 
virtual void Deactivate ()
 
- Protected Attributes inherited from Leap.Unity.Detector
Color OnColor = Color.green
 
Color OffColor = Color.red
 
Color LimitColor = Color.blue
 
Color DirectionColor = Color.white
 
Color NormalColor = Color.gray
 
- Properties inherited from Leap.Unity.Detector
bool IsActive [get]
 

Detailed Description

Detects when specified fingers are in an extended or non-extended state.

You can specify whether each finger is extended, not extended, or in either state. This detector activates when every finger on the observed hand meets these conditions.

If added to a HandModelBase instance or one of its children, this detector checks the finger state at the interval specified by the Period variable. You can also specify which hand model to observe explicitly by setting handModel in the Unity editor or in code.

Since
4.1.2

Definition at line 29 of file ExtendedFingerDetector.cs.

Member Data Documentation

◆ HandModel

HandModelBase Leap.Unity.ExtendedFingerDetector.HandModel = null

The HandModelBase instance to observe. Set automatically if not explicitly set in the editor.

Since
4.1.2

Definition at line 45 of file ExtendedFingerDetector.cs.

◆ Index

PointingState Leap.Unity.ExtendedFingerDetector.Index = PointingState.Either

The required index finger state.

Definition at line 53 of file ExtendedFingerDetector.cs.

◆ MaximumExtendedCount

int Leap.Unity.ExtendedFingerDetector.MaximumExtendedCount = 5

The most fingers allowed to be extended for the detector to activate.

Definition at line 72 of file ExtendedFingerDetector.cs.

◆ Middle

PointingState Leap.Unity.ExtendedFingerDetector.Middle = PointingState.Either

The required middle finger state.

Definition at line 56 of file ExtendedFingerDetector.cs.

◆ MinimumExtendedCount

int Leap.Unity.ExtendedFingerDetector.MinimumExtendedCount = 0

How many fingers must be extended for the detector to activate.

Definition at line 68 of file ExtendedFingerDetector.cs.

◆ Period

float Leap.Unity.ExtendedFingerDetector.Period = .1f

The interval at which to check finger state.

Since
4.1.2

Definition at line 37 of file ExtendedFingerDetector.cs.

◆ Pinky

PointingState Leap.Unity.ExtendedFingerDetector.Pinky = PointingState.Either

The required pinky finger state.

Definition at line 62 of file ExtendedFingerDetector.cs.

◆ Ring

PointingState Leap.Unity.ExtendedFingerDetector.Ring = PointingState.Either

The required ring finger state.

Definition at line 59 of file ExtendedFingerDetector.cs.

◆ ShowGizmos

bool Leap.Unity.ExtendedFingerDetector.ShowGizmos = true

Whether to draw the detector's Gizmos for debugging. (Not every detector provides gizmos.)

Since
4.1.2

Definition at line 78 of file ExtendedFingerDetector.cs.

◆ Thumb

PointingState Leap.Unity.ExtendedFingerDetector.Thumb = PointingState.Either

The required thumb state.

Definition at line 50 of file ExtendedFingerDetector.cs.


The documentation for this class was generated from the following file: