1.8.0: Added target frame rate and PlayerPrefs.Delete to toolbar
- Added: Tooltips on all buttons and labels in toolbar tools - Added: Target frame rate with `[min;max]` slider in toolbar - Added: `PlayerPrefs` delete button added to toolbar - Added: Option to select Single/Additive scene load/unload to scene picker - Added: All `IToolbarSettings` will be grouped with a foldout-toggle in Preferences
This commit is contained in:
parent
10d07b986f
commit
fe82c5c9fa
22 changed files with 669 additions and 48 deletions
26
Editor/Toolbar/Tools/Settings/ToolbarPlayerPrefsSettings.cs
Normal file
26
Editor/Toolbar/Tools/Settings/ToolbarPlayerPrefsSettings.cs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
using UnityEditor;
|
||||
|
||||
namespace Module.NavigationTool.Editor.Toolbar
|
||||
{
|
||||
internal sealed class ToolbarPlayerPrefsSettings : IToolbarSettings
|
||||
{
|
||||
public string Title => "Player Prefs";
|
||||
|
||||
private const string PREF_PLAYER_PREFS_ENABLED = "ToolbarSettings.IsPlayerPrefsEnabled";
|
||||
|
||||
public static bool IsPlayerPrefsEnabled
|
||||
{
|
||||
get => EditorPrefs.GetBool(PREF_PLAYER_PREFS_ENABLED, false);
|
||||
set => EditorPrefs.SetBool(PREF_PLAYER_PREFS_ENABLED, value);
|
||||
}
|
||||
|
||||
public void Initialize()
|
||||
{
|
||||
}
|
||||
|
||||
public void Draw()
|
||||
{
|
||||
IsPlayerPrefsEnabled = EditorGUILayout.Toggle("Enable Player Prefs", IsPlayerPrefsEnabled);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue