Activity Intelligence
  • APPLICATIONS
  • VIDEOS
  • DOWNLOAD
  • FEATURES
  • Contact us

SmartMotion Document

1. Get Detected Gestures

1.1 Get gesture ID
Function Name:GestureIDHandleEvent
To get the GestureID of the detected gesture, subscribe to the C# events the SmartMotion broadcasts.
Example:
Step1. Subscribe to the events.
GetComponent().GestureIDHandleEvent += getGestureID;
Step 2. Called when a result of the gesture detection is returned.
void getGestureID(int value)
{
// display the GestureID of the detected gesture
GestureIDText.text = "Gesture ID : " + value.ToString();
}
1.2 Get gesture name
Function Name:GestureNameHandleEvent
To get the GestureName of the detected gesture, subscribe to the C# events the SmartMotion broadcasts.
Example:
Step 1. Subscribe to the events.
GetComponent().GestureNameHandleEvent += getGestureName;
Step 2. Called when a result of the gesture detection is returned.
void getGestureName(string str)
{
// display the GestureName of the detected gesture
GestureNameText.text = "Gesture Name : " + str;
}

2. Get SmartMotion Version

2.1 Get SmartMotion version
Function Name:getProductVersion
Get this SmartMotion version.
Example:
// get the version number as a string
string version = getProductVersion();
Copyright © 2017