Skip to content

Commit

Permalink
Update CinemachineCorePrefs.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
glabute committed Aug 1, 2024
1 parent 6690b1a commit c9b159b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion com.unity.cinemachine/Editor/Windows/CinemachineCorePrefs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c9b159b

Please sign in to comment.