A Heart-Shaped Gesture More...
Public Member Functions | |
HeartGesture (float tolerance=0.4f) | |
Create a Heart Gesture with a specified tolerance. More... | |
Public Member Functions inherited from Gestures.Gesture | |
Gesture () | |
Create a Gesture object. Use additional methods to specify gesture composition for events, checks, and normalizers. More... | |
bool | GestureCompleted (List< GTransform > transforms) |
Determines if the specified GTransforms generated satisfy the requirements of this gesture. More... | |
void | FireEvent (GestureMetaData metaData) |
Fires the specifie GestureEvent associated with this gesture. More... | |
Gesture | AddEvent (UnityAction< GestureMetaData > eventAction) |
Adds a GestureEvent to be called at gesture completion. More... | |
void | ClearEvents () |
Removes all events associated with this gesture. More... | |
Gesture | SetNormalizer (Normalizer normalizer) |
Sets the Normalizer to be applied to every incoming GTransform data point. More... | |
Normalizer | GetNormalizer () |
Gets the Normalizer attached to this Gesture More... | |
Gesture | AddCheck (Check newCheck) |
Adds a single check to the list of checks that only need to be satisfied once for gesture completion. More... | |
Gesture | AddChecks (IEnumerable< Check > newChecks) |
Adds a range of checks to the list of checks that only need to be satisfied once for gesture completion. More... | |
Gesture | AddAlwaysCheck (Check newCheck) |
Adds a single check to the list of checks that need to be satisfied by every data point for gesture completion. More... | |
Gesture | AddAlwaysChecks (IEnumerable< Check > newChecks) |
Adds a range of check to the list of checks that need to be satisfied by every data point for gesture completion. More... | |
Gesture | AddSequentialCheck (Check newCheck) |
Adds a single check to the list of checks that must be satisfied in sequential order for gesture completion. More... | |
Gesture | AddSequentialChecks (IEnumerable< Check > newChecks) |
Adds a range of checks to the list of chekcs that must be satisfied in sequential order for gesture completion. More... | |
List< Check > | GetAllChecks () |
Get all checks attached to this Gesture More... | |
Additional Inherited Members | |
Properties inherited from Gestures.Gesture | |
bool | isEnabled [get, set] |
Whether the gesture is actively being detected or not. More... | |
float | gestureCompleteConfidence [get, set] |
The ratio of points that needs to satisfy gesture checks for gesture completion. More... | |
float | gestureCompletionPrecision [get, set] |
A measure of how close a set of GTransforms is to the gesture definition. More... | |
A Heart-Shaped Gesture
|
inline |
Create a Heart Gesture with a specified tolerance.
tolerance | The tolerance value for the lines and arcs of the heart. Default is 0.4f |