/// <summary> /// Ends the eye frame. /// </summary> /// <param name="eye">The eye.</param> public void EndEyeFramne(Eyes eye) { #if UNITY_ANDROID && !UNITY_EDITOR PluginEvents pluginEventType = (eye == Eyes.Left) ? PluginEvents.LeftEyeEndFrame : PluginEvents.RightEyeEndFrame; int eyeSceneTextureId = this.Hmd.GetEyeSceneTextureId(eye); int eyeGazeTextureId = this.Hmd.GetEyeGazeTextureId(eye); NativePluginEvents.IssuePluginEventWithParam(pluginEventType, ((long)eyeGazeTextureId << 32) + (long)eyeSceneTextureId); #endif }
/// <summary> /// Called when [application quit]. /// </summary> private void OnApplicationQuit() { Debug.Log("OnApplicationQuit"); NativePluginEvents.IssuePluginEvent(PluginEvents.QuitRenderThread); }
/// <summary> /// Initializes the render thread. /// </summary> public void InitRenderThread() { NativePluginEvents.IssuePluginEvent(PluginEvents.InitRenderThread); }
/// <summary> /// Does the time warp. /// </summary> /// <param name="timeWarpViewIndex">Index of the time warp view.</param> public void DoTimeWarp(int timeWarpViewIndex) { NativePluginEvents.IssuePluginEventWithParam(PluginEvents.TimeWarp, timeWarpViewIndex); }
/// <summary> /// Platforms the UI global menu. /// </summary> public void PlatformUiGlobalMenu() { NativePluginEvents.IssuePluginEvent(PluginEvents.PlatformUI); }
/// <summary> /// Platforms the UI confirm quit. /// </summary> public void PlatformUiConfirmQuit() { NativePluginEvents.IssuePluginEvent(PluginEvents.PlatformUIConfirmQuit); }
/// <summary> /// Stops the VR mode. /// </summary> public void StopVrMode() { NativePluginEvents.IssuePluginEvent(PluginEvents.Pause); }
/// <summary> /// Starts the VR mode. /// </summary> public void StartVrMode() { NativePluginEvents.IssuePluginEvent(PluginEvents.Resume); }