From 03136cc7d4823fb8d485bffed6b5d5cc525eb003 Mon Sep 17 00:00:00 2001 From: NotAKidoS <37721153+NotAKidOnSteam@users.noreply.github.com> Date: Sat, 23 Sep 2023 19:40:37 -0500 Subject: [PATCH] [DesktopVRSwitch] Added buffer to switch transition to ensure it fully played. --- DesktopVRSwitch/VRModeSwitchManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DesktopVRSwitch/VRModeSwitchManager.cs b/DesktopVRSwitch/VRModeSwitchManager.cs index 34c3be3..d4ccc24 100644 --- a/DesktopVRSwitch/VRModeSwitchManager.cs +++ b/DesktopVRSwitch/VRModeSwitchManager.cs @@ -109,14 +109,14 @@ public class VRModeSwitchManager : MonoBehaviour { if (WorldTransitionSystem.Instance == null) yield break; WorldTransitionSystem.Instance.StartTransition(); - yield return new WaitForSeconds(WorldTransitionSystem.Instance.CurrentInLength); + yield return new WaitForSeconds(WorldTransitionSystem.Instance.CurrentInLength + 0.25f); } private IEnumerator ContinueTransition() { if (WorldTransitionSystem.Instance == null) yield break; WorldTransitionSystem.Instance.ContinueTransition(); - yield return new WaitForSeconds(WorldTransitionSystem.Instance.CurrentInLength); + yield return new WaitForSeconds(WorldTransitionSystem.Instance.CurrentInLength + 0.25f); } #endregion