private void setLongHomeKey()
 {
     if (SDK.HeadDofNum == HeadDofNum.ThreeDof)
     {
         if (pvr_UnitySDKSensor != null)
         {
             if (isViewerLogicFlow)
             {
                 Debug.Log(pvr_UnitySDKSensor.ResetUnitySDKSensorAll()
                    ? "Long Home Key to Reset Sensor ALL Success!"
                    : "Long Home Key to Reset Sensor ALL Failed!");
             }
             else
             {
                 Debug.Log(pvr_UnitySDKSensor.ResetUnitySDKSensor()
                     ? "Long Home Key to Reset Sensor Success!"
                     : "Long Home Key to Reset Sensor Failed!");
             }
         }
     }
     else
     {
         if (SDK.sixDofRecenter)
         {
             //showtoast
             resetPanel.transform.Find("Panel").GetComponent <Canvas>().sortingOrder = safeToast.transform.Find("Panel").GetComponent <Canvas>().sortingOrder + 1;
             resetPanel.SetActive(true);
         }
     }
 }
 private void setLongHomeKey()
 {
     if (SDK.HeadDofNum == HeadDofNum.ThreeDof)
     {
         if (pvr_UnitySDKSensor != null)
         {
             if (isViewerLogicFlow)
             {
                 Debug.Log(pvr_UnitySDKSensor.ResetUnitySDKSensorAll()
                    ? "Long Home Key to Reset Sensor ALL Success!"
                    : "Long Home Key to Reset Sensor ALL Failed!");
             }
             else
             {
                 Debug.Log(pvr_UnitySDKSensor.ResetUnitySDKSensor()
                     ? "Long Home Key to Reset Sensor Success!"
                     : "Long Home Key to Reset Sensor Failed!");
             }
         }
     }
     else
     {
         if (SDK.sixDofRecenter && pvr_UnitySDKSensor != null)
         {
             if (safeToast.activeSelf)
             {
                 if (isHasController && (Controller.UPvr_GetControllerState(0) == ControllerState.Connected || Controller.UPvr_GetControllerState(1) == ControllerState.Connected))
                 {
                     pvr_UnitySDKSensor.OptionalResetUnitySDKSensor(0, 1);
                 }
                 else
                 {
                     pvr_UnitySDKSensor.OptionalResetUnitySDKSensor(1, 1);
                 }
             }
             else
             {
                 if (trackingmode == 0 || trackingmode == 1)
                 {
                     if (isViewerLogicFlow)
                     {
                         pvr_UnitySDKSensor.ResetUnitySDKSensorAll();
                     }
                     else
                     {
                         pvr_UnitySDKSensor.ResetUnitySDKSensor();
                     }
                 }
                 else
                 {
                     resetPanel.SetActive(true);
                 }
             }
         }
     }
 }
Exemple #3
0
 private void SDKManagerLongHomeKey()
 {
     if (pvr_UnitySDKSensor != null)
     {
         if (pvr_UnitySDKSensor.ResetUnitySDKSensor())
         {
             Debug.Log("Long Home Key to Reset Sensor Success!");
         }
         else
         {
             Debug.Log("Long Home Key to Reset Sensor Failed!");
         }
     }
 }
Exemple #4
0
 private void setLongHomeKey()
 {
     if (SDK.HeadDofNum == HeadDofNum.ThreeDof)
     {
         if (pvr_UnitySDKSensor != null)
         {
             Debug.Log(pvr_UnitySDKSensor.ResetUnitySDKSensor()
                 ? "Long Home Key to Reset Sensor Success!"
                 : "Long Home Key to Reset Sensor Failed!");
         }
     }
     else
     {
         if (SDK.sixDofRecenter)
         {
             //showtoast
             resetPanel.SetActive(true);
         }
     }
 }