UnityEssentials
Small but useful tools and features for Unity
SavedData.cs
Go to the documentation of this file.
1 using UnityEditor;
2 
4 {
8  static class SavedData
9  {
10 
11  #region WelcomeSettingsScreen
12 
13  #if UNITY_EDITOR
17  public static bool settingsShown
18  {
19  get
20  {
21  _settingsShown = EditorPrefs.GetInt("Essentials_" + nameof(settingsShown))==1;
22  return _settingsShown;
23  }
24  set
25  {
26  if (_settingsShown == value)
27  return;
28  _settingsShown = value;
29  EditorPrefs.SetInt("Essentials_" + nameof(settingsShown), value? 1 : 0);
30  }
31  }
32  private static bool _settingsShown;
33  #endif
34 
35  #endregion
36 
37  }
38 }
Stores data related to the "Essentials Settings Window"
Definition: SavedData.cs:9