diff --git a/com.unity.cinemachine/Editor/Windows/CinemachineCorePrefs.cs b/com.unity.cinemachine/Editor/Windows/CinemachineCorePrefs.cs index 6ee4e3a3d..b86c27dd0 100644 --- a/com.unity.cinemachine/Editor/Windows/CinemachineCorePrefs.cs +++ b/com.unity.cinemachine/Editor/Windows/CinemachineCorePrefs.cs @@ -9,7 +9,12 @@ static class CinemachineCorePrefs public class GameViewGuidesItem : CinemachineSettings.BoolItem { public GameViewGuidesItem(string key, bool defaultValue) : base(key, defaultValue) {} - protected override bool ReadPrefs() => CinemachineDebug.GameViewGuidesEnabled = base.ReadPrefs(); + protected override bool ReadPrefs() + { + var value = base.ReadPrefs(); + CinemachineDebug.GameViewGuidesEnabled = value; + return value; + } protected override void WritePrefs(bool value) { base.WritePrefs(value);