- 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
26 lines
749 B
C#
26 lines
749 B
C#
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);
|
|
}
|
|
}
|
|
} |