IEnumerator EndOfFrame() { while (true) { yield return(new WaitForEndOfFrame()); UpdateState(); device.PostRender(vrModeEnabled); if (vrModeEnabled && !NativeUILayerSupported) { if (uiLayer == null) { uiLayer = new CardboardUILayer(); } uiLayer.Draw(); } DispatchEvents(); updated = false; } }
IEnumerator EndOfFrame() { while (true) { yield return new WaitForEndOfFrame(); UpdateState(); device.PostRender(vrModeEnabled); if (vrModeEnabled && !NativeUILayerSupported) { if (uiLayer == null) { uiLayer = new CardboardUILayer(); } uiLayer.Draw(); } DispatchEvents(); updated = false; } }