void UpdateVideoSeeThrough() { if (videoSeeThrough != videoSeeThroughEnabled) { if (videoSeeThrough) { videoSeeThrough = VarjoPluginMR.StartRender(); } else { VarjoPluginMR.StopRender(); } videoSeeThroughEnabled = videoSeeThrough; } }
private void OnMRDeviceStatus(bool connected) { Debug.Log("MR Device status: " + (connected ? "connected" : "disconnected")); if (connected) { VarjoPluginMR.StartRender(); SetClearColorSolidColor(); } else { SetClearColorSkybox(); VarjoPluginMR.StopRender(); } }