|
MeshBaker
|
Public Member Functions | |
| delegate void | FingerEventDelegate (Finger finger) |
| Delegate for OnDown & OnUp More... | |
| Finger (int index) | |
| override string | ToString () |
Properties | |
| int | Index [get] |
| Unique identifier for this finger. More... | |
| FingerPhase | Phase [get] |
| Current phase More... | |
| bool | IsDown [get] |
| Return true if the finger is currently down More... | |
| bool | WasDown [get] |
| Return true if the finger was down during the previous update/frame More... | |
| float | StarTime [get] |
| Get the time of first screen contact More... | |
| Vector2 | StartPosition [get] |
| Get the position of first screen contact More... | |
| Vector2 | Position [get] |
| Get the current position More... | |
| Vector2 | PreviousPosition [get] |
| Get the position during the previous frame More... | |
| Vector2 | DeltaPosition [get] |
| Get the difference between previous and current position More... | |
| float | DistanceFromStart [get] |
| Get the distance traveled from initial position More... | |
Events | |
| FingerEventDelegate | OnDown |
| Event fired on the first frame the finger is down More... | |
| FingerEventDelegate | OnUp |
| Event fired when the finger, previously down, has just been released. More... | |
This provides an abstraction for a finger that can touch and move around the screen. As opposed to Unity's Touch object, a Finger exists independently of whether it is currently touching the screen or not
| FingerGestures.Finger.Finger | ( | int | index | ) |
| delegate void FingerGestures.Finger.FingerEventDelegate | ( | Finger | finger | ) |
Delegate for OnDown & OnUp
| finger | the finger firing the event |
| override string FingerGestures.Finger.ToString | ( | ) |
|
get |
Get the difference between previous and current position
|
get |
Get the distance traveled from initial position
|
get |
Unique identifier for this finger.
For touch screen gestures, this corresponds to Touch.index, and the button index for mouse gestures.
|
get |
Return true if the finger is currently down
|
get |
Current phase
|
get |
Get the current position
|
get |
Get the position during the previous frame
|
get |
Get the time of first screen contact
|
get |
Get the position of first screen contact
|
get |
Return true if the finger was down during the previous update/frame
| FingerEventDelegate FingerGestures.Finger.OnDown |
Event fired on the first frame the finger is down
| FingerEventDelegate FingerGestures.Finger.OnUp |
Event fired when the finger, previously down, has just been released.
e.g. this would be the equivalent of a "mouse up" button event.
1.8.12