Documentation: Updated README.md and added a small demo gif
This commit is contained in:
parent
f1e33f5e6b
commit
5f37c59a79
7 changed files with 168 additions and 23 deletions
|
|
@ -10,7 +10,13 @@ namespace Module.UIToolkit.Editor
|
|||
public bool collectionViewDisableMaxHeight = true;
|
||||
|
||||
private static Settings _settings;
|
||||
|
||||
|
||||
internal void Save()
|
||||
{
|
||||
var json = JsonUtility.ToJson(this);
|
||||
EditorPrefs.SetString(nameof(Settings), json);
|
||||
}
|
||||
|
||||
internal static Settings Load()
|
||||
{
|
||||
if (_settings != null)
|
||||
|
|
@ -24,11 +30,5 @@ namespace Module.UIToolkit.Editor
|
|||
|
||||
return _settings;
|
||||
}
|
||||
|
||||
internal void Save()
|
||||
{
|
||||
var json = JsonUtility.ToJson(this);
|
||||
EditorPrefs.SetString(nameof(Settings), json);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue