From b43ef967726bae5859a72d8e90bf3fe2bbbb992a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=EC=98=81=EB=AF=BC?= <117150306+jym04@users.noreply.github.com> Date: Mon, 9 Jun 2025 13:52:23 +0900 Subject: [PATCH] =?UTF-8?q?=ED=94=84=EB=A1=9C=EA=B7=B8=EB=9E=A8=20?= =?UTF-8?q?=EC=99=B8=EB=B6=80=EB=A1=9C=20=EB=A7=88=EC=9A=B0=EC=8A=A4=20?= =?UTF-8?q?=ED=8F=AC=EC=BB=A4=EC=8A=A4=20=EC=9D=B4=EB=8F=99=20=ED=9B=84=20?= =?UTF-8?q?=EC=9E=AC=EC=A1=B0=EC=9E=91=EC=8B=9C=20=EC=B9=B4=EB=A9=94?= =?UTF-8?q?=EB=9D=BC=EA=B0=80=20=EA=B8=89=ED=9A=8C=EC=A0=84=20=ED=95=98?= =?UTF-8?q?=EB=8A=94=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ExternalAssets/Runtime Transform Gizmos/RTGApp.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/ExternalAssets/Runtime Transform Gizmos/RTGApp.cs b/Assets/Scripts/ExternalAssets/Runtime Transform Gizmos/RTGApp.cs index f07b3883..a42fa0a7 100644 --- a/Assets/Scripts/ExternalAssets/Runtime Transform Gizmos/RTGApp.cs +++ b/Assets/Scripts/ExternalAssets/Runtime Transform Gizmos/RTGApp.cs @@ -14,6 +14,7 @@ namespace RTG public event RTGAppInitializedHandler Initialized; private Camera _renderCamera; private RenderPipelineId _renderPipelineId; + private bool isPaused; public RenderPipelineId RenderPipelineId { get { return _renderPipelineId; } } public Camera RenderCamera { get { return _renderCamera; } } @@ -103,6 +104,9 @@ namespace RTG private void Update() { + if (isPaused) + return; + // Note: Don't change the order :) RTInputDevice.Get.Update_SystemCall(); RTFocusCamera.Get.Update_SystemCall(); @@ -207,6 +211,9 @@ namespace RTG typeof(RTInputDevice), typeof(RTUndoRedo), typeof(RTGizmosEngine), }; } - + private void OnApplicationFocus(bool focus) + { + isPaused = !focus; + } } } -- 2.48.1.windows.1