36 lines
1.3 KiB
C#
36 lines
1.3 KiB
C#
using UnityEditor;
|
|
|
|
namespace Module.NavigationTool.Editor.Toolbar
|
|
{
|
|
internal static class ToolbarSettings
|
|
{
|
|
private const string PREF_IS_UI_ENABLED = "ToolbarSettings_IsUiEnabled";
|
|
private const string PREF_IS_UI_LAYER_ENABLED = "ToolbarSettings_IsUiLayerEnabled";
|
|
private const string PREF_IS_SCENE_ENABLED = "ToolbarSettings_IsSceneEnabled";
|
|
private const string PREF_IS_TIME_SCALE_ENABLED = "ToolbarSettings.IsTimeScaleEnabled";
|
|
|
|
public static bool IsUiEnabled
|
|
{
|
|
get => EditorPrefs.GetBool(PREF_IS_UI_ENABLED, false);
|
|
set => EditorPrefs.SetBool(PREF_IS_UI_ENABLED, value);
|
|
}
|
|
|
|
public static bool IsUiLayerEnabled
|
|
{
|
|
get => EditorPrefs.GetBool(PREF_IS_UI_LAYER_ENABLED, false);
|
|
set => EditorPrefs.SetBool(PREF_IS_UI_LAYER_ENABLED, value);
|
|
}
|
|
|
|
public static bool IsSceneEnabled
|
|
{
|
|
get => EditorPrefs.GetBool(PREF_IS_SCENE_ENABLED, true);
|
|
set => EditorPrefs.SetBool(PREF_IS_SCENE_ENABLED, value);
|
|
}
|
|
|
|
public static bool IsTimeScaleEnabled
|
|
{
|
|
get => EditorPrefs.GetBool(PREF_IS_TIME_SCALE_ENABLED, false);
|
|
set => EditorPrefs.SetBool(PREF_IS_TIME_SCALE_ENABLED, value);
|
|
}
|
|
}
|
|
} |