HandGestureDefinition
A class in Root.Township, the global namespace.
A hand gesture asset (such as pointing), matched to a transition on the hand animator. All of them are loaded from Resources/Gesture Definitions.
- Listed in Global namespace: E to H
- Inherits or implements
ScriptableObject - Derived types
HandGestureDefinition.Create - Nested types
Create
Constructors
| Member | What it is |
|---|---|
HandGestureDefinition() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
3 private and internal fields
| Member | What it is |
|---|---|
private HandFingers activeFingers | Backing field for ActiveFingers, the fingers whose collisions turn on while the gesture is active. |
private int animatorTransitionIndex | Backing field for AnimatorTransitionIndex. Must match the transition number in the hand animator. |
private static Dictionary<int, HandGestureDefinition> gestureForAnimationIndex | Backing field for GestureForAnimationIndex, loaded from the "Gesture Definitions" resources on first use. |
Properties
| Member | What it is |
|---|---|
HandFingers ActiveFingers { get; } | Fingers whose collisions are turned on while the gesture is active. |
int AnimatorTransitionIndex { get; } | Number of the hand animator transition this gesture uses. |
static Dictionary<int, HandGestureDefinition> GestureForAnimationIndex { get; } | Every gesture by animator transition index, loaded on first use. |
static HandGestureDefinition NoGesture { get; } | Always null, standing for no gesture. |
Used in
Members of other types that take, return or hold a HandGestureDefinition:
BowString.arrowPullGesture, GestureMap.gestureMap, GestureMap.idleGesture, GestureMap.IdleGesture, GestureMap.Map, GestureMap.GestureMapping.gesture, GestureMap.GestureMapping.Gesture, HandCollisionsController.EnabledCollidersForGesture, HandCollisionsController.EnabledCollidersForIdleGesture, HandGestureController.currentGesture, HandGestureController.GetCurrentGesture, HandGestureController.OverrideGesture, HandGestureController.PerformGesture, HandGestureController.previousGesture, HandGestureTrigger.definition, HandHoverPoint.gesture.