private void StopTracking() { //Debug.Log ("ServiceManager: Stop Tracking"); RemoveAllTrackable(); VisionUnityPlugin.StopAR(); _enableTracking = false; }
void OnApplicationQuit() { StopCamera(); StopThermal(); StopIMU(); StopPositionMonitor(); /*//Debug.Log ("OnApplicationQuit"); * if (_enableVideoTextureUpdates) * { * if (videoBackgroundUsers.Count != 0) { * StopCamera (); * } * } * * if (_enableThermalUpdates) * { * if (thermalBackgroundUsers.Count != 0) { * StopThermal (); * } * } * * if (_enableIMU) * { * if (imuUsers.Count != 0) { * StopIMU (); * } * } * * if (_enablePose){ * if (vioUsers.Count != 0) { * StopIMU (); * StopPositionMonitor (); * } * }*/ if (_enableTracking) { VisionUnityPlugin.StopAR(); } }