From 4eb6fb65267d04c8f9508a3effb52d1a14b3d559 Mon Sep 17 00:00:00 2001 From: Firerise9402 <90978630+Firerise9402@users.noreply.github.com> Date: Sun, 15 Oct 2023 19:29:38 -0400 Subject: [PATCH] fixed a thing in the editor, something broke with the new cool stuff --- Assets/Scripts/WindowController.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/Scripts/WindowController.cs b/Assets/Scripts/WindowController.cs index 6e70f61ac..33f422071 100644 --- a/Assets/Scripts/WindowController.cs +++ b/Assets/Scripts/WindowController.cs @@ -216,7 +216,11 @@ namespace HeavenStudio pan = defaultPan; scale = defaultScale; shakeResult = defaultShake; + #if UNITY_EDITOR + return; + #else SetPosition(Convert.ToInt16(pan.x), Convert.ToInt16(pan.y), Convert.ToInt16(scale.x), Convert.ToInt16(scale.y)); + #endif } } } \ No newline at end of file