private IEnumerator FrameRender() { while (_mediaSession.Available) { if (!_hasPaused) { transform.rotation = _rotation; MediaSession.InvokeRenderEvent(); } yield return(new WaitForEndOfFrame()); } print("Video Drained"); enabled = false; }
private IEnumerator FrameRender() { while (_mediaSession.Available) { if (!_hasPaused) { transform.rotation = _rotation; MediaSession.InvokeRenderEvent(); } yield return(new WaitForEndOfFrame()); } print("Video Drained"); enabled = false; }