Tanoda
|
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 |
![]() | |
UnityEvent | OnActivate |
UnityEvent | OnDeactivate |
Additional Inherited Members | |
![]() | |
virtual void | Activate () |
virtual void | Deactivate () |
![]() | |
Color | OnColor = Color.green |
Color | OffColor = Color.red |
Color | LimitColor = Color.blue |
Color | DirectionColor = Color.white |
Color | NormalColor = Color.gray |
![]() | |
bool | IsActive [get] |
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.
Definition at line 29 of file ExtendedFingerDetector.cs.
HandModelBase Leap.Unity.ExtendedFingerDetector.HandModel = null |
The HandModelBase instance to observe. Set automatically if not explicitly set in the editor.
Definition at line 45 of file ExtendedFingerDetector.cs.
PointingState Leap.Unity.ExtendedFingerDetector.Index = PointingState.Either |
The required index finger state.
Definition at line 53 of file ExtendedFingerDetector.cs.
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.
PointingState Leap.Unity.ExtendedFingerDetector.Middle = PointingState.Either |
The required middle finger state.
Definition at line 56 of file ExtendedFingerDetector.cs.
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.
float Leap.Unity.ExtendedFingerDetector.Period = .1f |
The interval at which to check finger state.
Definition at line 37 of file ExtendedFingerDetector.cs.
PointingState Leap.Unity.ExtendedFingerDetector.Pinky = PointingState.Either |
The required pinky finger state.
Definition at line 62 of file ExtendedFingerDetector.cs.
PointingState Leap.Unity.ExtendedFingerDetector.Ring = PointingState.Either |
The required ring finger state.
Definition at line 59 of file ExtendedFingerDetector.cs.
bool Leap.Unity.ExtendedFingerDetector.ShowGizmos = true |
Whether to draw the detector's Gizmos for debugging. (Not every detector provides gizmos.)
Definition at line 78 of file ExtendedFingerDetector.cs.
PointingState Leap.Unity.ExtendedFingerDetector.Thumb = PointingState.Either |
The required thumb state.
Definition at line 50 of file ExtendedFingerDetector.cs.