void OnApplicationQuit() { if (FingoManager.ReleaseAllDevices()) { Debug.Log("Fingo Manager Release Success!"); } }
/// <summary> /// Set the head tracking function enable or disable. /// </summary> /// <param name="enable"> Enable or disable head tracking. </param> /// <returns> Setting hand tracking enable or disable success. </returns> public bool SetHeadTrackingEnable(bool enable) { if (FingoManager.SetHeadTrackingEnable(enable)) { enableHeadTracking = enable; return(true); } return(false); }
/// <summary> /// Set color image enable or disable. /// </summary> /// <param name="enable"> Enable or disable get color image. </param> /// <returns> Setting color image enable or disable success. </returns> public bool SetRGBImageEnable(bool enable) { if (FingoManager.SetRGBImageEnable(enable)) { enableColorImage = enable; return(true); } return(false); }
/// <summary> /// Set infrared image enable or disable. /// </summary> /// <param name="enable"> Enable or disable get infrared image. </param> /// <returns> Setting infrared image enable or disable success. </returns> public bool SetIRImageEnable(bool enable) { if (FingoManager.SetIRImageEnable(enable)) { enableInfraredImage = enable; return(true); } return(false); }
/// <summary> /// Set the gesture detection enable or disable. /// </summary> /// <param name="enable"> Enable or disable gesture detection or not. </param> /// <returns> Setting gesture detection enable or disable success. </returns> public bool SetGestureDetectionEnable(bool enable) { if (FingoManager.SetGestureDetectionEnable(enable)) { enableGestureDetection = enable; return(true); } return(false); }
void Awake() { if (FingoManager.Initialize(enableHandTracking, enableGestureDetection, enableInfraredImage, enableColorImage, enableHeadTracking)) { Debug.Log("Fingo Manager Initialize Success!"); } else { Debug.Log("Fingo Manager Initialize Failed!"); } }
/// <summary> /// Get infrared image data corresponding to the particular eye type currently tracked /// </summary> /// <param name="eye"> The eye type of the color image. </param> /// <returns> The color image of the eye. </returns> public Image GetRGBImage(EyeType eye) { return(FingoManager.GetRGBImage(eye)); }
/// <summary> /// Get infrared image data corresponding to the particular eye type currently tracked /// </summary> /// <param name="eye"> The eye type of the infrared image. </param> /// <returns> The infrared image of the eye. </returns> public Image GetInfraredImage(EyeType eye) { return(FingoManager.GetInfraredImage(eye)); }
/// <summary> /// Reset the positional tracking. /// </summary> public void ResetHeadTracking() { FingoManager.ResetHeadTracking(); FingoManager.InitHeadTracking(); }
/// <summary> /// Set the gesture detection mode. /// </summary> /// <param name="detectionMode"> The target mode of gesture detection. </param> /// <returns> Setting gesture detection mode success. </returns> public bool SetGestureDetectionMode(GestureDetectionMode detectionMode) { return(FingoManager.SetGestureDetectionMode(detectionMode)); }
/// <summary> /// Get the hand data corresponding to the particular hand type currently tracked /// </summary> /// <param name="handtype"> Hand type of the hand. </param> /// <returns> The hand data of this hand. </returns> public Hand GetHand(HandType handtype) { return(FingoManager.GetHand(handtype)); }
/// <summary> /// Set enable or disable stabilizer to hand data. /// </summary> /// <param name="enableStabilizer"> Enable or disable stabilizer. </param> public void SetHandStabilizer(bool enableStabilizer) { FingoManager.EnableHandStabilizer(enableStabilizer); }
/// <summary> /// Set enable or disable time warping to hand data. /// </summary> /// <param name="enableTimeWarping"> Enable or disable time warping. </param> public void SetHandTimeWarping(bool enableTimeWarping) { FingoManager.EnableHandTimeWarping(enableTimeWarping); }
/// <summary> /// Get the hand raw data corresponding to the particular hand type currently tracked /// </summary> /// <param name="handtype"> Hand type of the hand. </param> /// <returns> The hand raw data of this hand. </returns> public HandRawData GetRawHandData(HandType handtype) { return(FingoManager.GetRawHandData(handtype)); }
/// <summary> /// Get the gesture detection mode. /// </summary> /// <returns> The gesture detection mode using right now. </returns> public GestureDetectionMode GetGestureDetectionMode() { return(FingoManager.GetGestureDetectionMode()); }
/// <summary> /// Test the capability of Fingo devices. /// </summary> /// <param name="deviceCapability"> The device capability. </param> /// <returns> Capable of the devices. </returns> public bool TestDevicesCapability(FingoCapability deviceCapability) { return(FingoManager.TestCapability(deviceCapability)); }
/// <summary> /// Get the Head instance currently tracked /// </summary> /// <returns> The head data from Fingo. </returns> public Head GetHead() { return(FingoManager.GetHead()); }