Метод | Описание | |
---|---|---|
GestureCancelled ( long userId, int userIndex, |
Invoked if a gesture is cancelled.
|
|
GestureCompleted ( long userId, int userIndex, |
Invoked if a gesture is completed.
|
|
GestureInProgress ( long userId, int userIndex, |
Invoked when a gesture is in progress.
|
|
IsHiddenGesture ( ) : bool |
Determines whether hidden gesture is detected.
|
|
IsSwipeLeft ( ) : bool |
Determines whether swipe left is detected.
|
|
IsSwipeRight ( ) : bool |
Determines whether swipe right is detected.
|
|
IsSwipeUp ( ) : bool |
Determines whether swipe up is detected.
|
|
UserDetected ( long userId, int userIndex ) : void |
Invoked when a new user is detected. Here you can start gesture tracking by invoking KinectManager.DetectGesture()-function.
|
|
UserLost ( long userId, int userIndex ) : void |
Invoked when a user gets lost. All tracked gestures for this user are cleared automatically.
|
Метод | Описание | |
---|---|---|
Awake ( ) : void |
public GestureCancelled ( long userId, int userIndex, |
||
userId | long | User ID |
userIndex | int | User index |
gesture | Gesture type | |
joint | Joint type | |
Результат | bool |
public GestureCompleted ( long userId, int userIndex, |
||
userId | long | User ID |
userIndex | int | User index |
gesture | Gesture type | |
joint | Joint type | |
screenPos | Vector3 | Normalized viewport position |
Результат | bool |
public GestureInProgress ( long userId, int userIndex, |
||
userId | long | User ID |
userIndex | int | User index |
gesture | Gesture type | |
progress | float | Gesture progress [0..1] |
joint | Joint type | |
screenPos | Vector3 | Normalized viewport position |
Результат | void |
public UserDetected ( long userId, int userIndex ) : void | ||
userId | long | User ID |
userIndex | int | User index |
Результат | void |
public UserLost ( long userId, int userIndex ) : void | ||
userId | long | User ID |
userIndex | int | User index |
Результат | void |