From 5a0da3e28f8fa5a9dcb39c1b6185868c148cb75e Mon Sep 17 00:00:00 2001 From: D4VID Date: Sun, 1 Jun 2025 18:12:41 +0200 Subject: [PATCH] Hide point markers during play --- CameraRoll/CameraRoll/manifest.jecs | 2 +- .../CameraRoll/src/client/tool/CameraRollTool.cs | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CameraRoll/CameraRoll/manifest.jecs b/CameraRoll/CameraRoll/manifest.jecs index ba78844..80b9ddb 100755 --- a/CameraRoll/CameraRoll/manifest.jecs +++ b/CameraRoll/CameraRoll/manifest.jecs @@ -1,7 +1,7 @@ ID: D4VID_CameraRoll Name: CameraRoll Author: D4VID -Version: 0.2.4 +Version: 0.2.5 Priority: 0 ClientOnly: true Dependencies: diff --git a/CameraRoll/CameraRoll/src/client/tool/CameraRollTool.cs b/CameraRoll/CameraRoll/src/client/tool/CameraRollTool.cs index 33ab66c..82f7782 100755 --- a/CameraRoll/CameraRoll/src/client/tool/CameraRollTool.cs +++ b/CameraRoll/CameraRoll/src/client/tool/CameraRollTool.cs @@ -60,6 +60,13 @@ namespace CameraRoll.Client.Tool { } } + public static void SetPointsVisible(bool visible) { + foreach (GameObject point in PathPoints) { + point.SetActive(visible); + } + } + + public static void Play() { if (_playing) return; @@ -69,6 +76,7 @@ namespace CameraRoll.Client.Tool { _pointIndex = 0; _interpolationState = 0.0f; + SetPointsVisible(false); _playing = true; } @@ -78,6 +86,8 @@ namespace CameraRoll.Client.Tool { _cam.transform.localPosition = _originalPosition; _cam.transform.localRotation = _originalRotation; + + SetPointsVisible(true); } public static void Clear() {