From 6cce92caaf28893227cf0547f9f5635a6fb6a9f6 Mon Sep 17 00:00:00 2001 From: Jamie Greunbaum Date: Sat, 2 Aug 2025 23:54:26 -0400 Subject: [PATCH] Video player now uses a different method for hiding unused screens. --- Assets/UdonSharp/CaseVideoSyncPlayer.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Assets/UdonSharp/CaseVideoSyncPlayer.cs b/Assets/UdonSharp/CaseVideoSyncPlayer.cs index e2b9e41..85424ba 100644 --- a/Assets/UdonSharp/CaseVideoSyncPlayer.cs +++ b/Assets/UdonSharp/CaseVideoSyncPlayer.cs @@ -225,23 +225,23 @@ public class CaseVideoSyncPlayer : UdonSharpBehaviour { case ClueScreenType.Blank: { - _BlankScreenMesh.gameObject.SetActive(true); - _VideoScreenMesh.gameObject.SetActive(false); - _MapScreenMesh.gameObject.SetActive(false); + _BlankScreenMesh.transform.localPosition = new Vector3(0.0f, 0.0f, 0.0f); + _VideoScreenMesh.transform.localPosition = new Vector3(0.0f, -1000.0f, 0.0f); + _MapScreenMesh.transform.localPosition = new Vector3(0.0f, -1000.0f, 0.0f); break; } case ClueScreenType.Video: { - _BlankScreenMesh.gameObject.SetActive(false); - _VideoScreenMesh.gameObject.SetActive(true); - _MapScreenMesh.gameObject.SetActive(false); + _BlankScreenMesh.transform.localPosition = new Vector3(0.0f, -1000.0f, 0.0f); + _VideoScreenMesh.transform.localPosition = new Vector3(0.0f, 0.0f, 0.0f); + _MapScreenMesh.transform.localPosition = new Vector3(0.0f, -1000.0f, 0.0f); break; } case ClueScreenType.Map: { - _BlankScreenMesh.gameObject.SetActive(false); - _VideoScreenMesh.gameObject.SetActive(false); - _MapScreenMesh.gameObject.SetActive(true); + _BlankScreenMesh.transform.localPosition = new Vector3(0.0f, -1000.0f, 0.0f); + _VideoScreenMesh.transform.localPosition = new Vector3(0.0f, -1000.0f, 0.0f); + _MapScreenMesh.transform.localPosition = new Vector3(0.0f, 0.0f, 0.0f); break; } }