コード例 #1
0
 /// <summary>
 /// Checks for sensor recovery.
 /// </summary>
 /// <param name="controller"></param>
 /// <returns></returns>
 private bool CheckSensorRecovery(MetaSensorUiController controller)
 {
     if (SensorsInitialized())
     {
         if (!DepthSensorWorking())
         {
             //Not all the sensors have recovered. Show a message indefinitely.
             controller.ChangeMessage("We've encountered issues starting sensors. Hands might not track.\nExit the application and run Headset Diagnostics.");
             return(true);
         }
         controller.ChangeMessage(string.Empty);
         return(true);
     }
     return(false);
 }
コード例 #2
0
        private void CheckSensors()
        {
            var manager = GameObject.FindObjectOfType <MetaManager>();

            _controller = new MetaSensorUiController();
            _controller.SetTitleVisibility(false);

            if (!manager)
            {
                Debug.LogError("Could not get MetaManager");
                return;
            }

            manager.StartCoroutine(CheckSensorsAtIntervals());
            manager.StartCoroutine(CheckSensorsRepeatedly());
        }