Exemplo n.º 1
0
 void UpdateVideoSeeThrough()
 {
     if (videoSeeThrough != videoSeeThroughEnabled)
     {
         if (videoSeeThrough)
         {
             videoSeeThrough = VarjoPluginMR.StartRender();
         }
         else
         {
             VarjoPluginMR.StopRender();
         }
         videoSeeThroughEnabled = videoSeeThrough;
     }
 }
Exemplo n.º 2
0
        private void OnMRDeviceStatus(bool connected)
        {
            Debug.Log("MR Device status: " + (connected ? "connected" : "disconnected"));

            if (connected)
            {
                VarjoPluginMR.StartRender();
                SetClearColorSolidColor();
            }
            else
            {
                SetClearColorSkybox();
                VarjoPluginMR.StopRender();
            }
        }