module-navigation-tool/Editor/History/Utilities/EditorHistoryPrefs.cs
Anders Ejlersen 5a2dcf3619 1.8.4: History received a fix for startup issue, increased entry size, and context menu options
- Set selection active in history is now a toggleable feature in the context menu
- Increased number of entries in history from 32 to 64
- Clear entries moved to context menu in history
- Fixed issue, where history didn't work on first startup
2023-03-27 22:02:44 +02:00

15 lines
500 B
C#

using UnityEditor;
namespace Module.NavigationTool.Editor.History
{
internal static class EditorHistoryPrefs
{
private const string PREF_IS_SET_AS_ACTIVE_OBJECT_ENABLED = "EditorHistoryWindow.IsSetAsActiveObjectEnabled";
public static bool IsSetAsActiveObjectEnabled
{
get => EditorPrefs.GetBool(PREF_IS_SET_AS_ACTIVE_OBJECT_ENABLED, true);
set => EditorPrefs.SetBool(PREF_IS_SET_AS_ACTIVE_OBJECT_ENABLED, value);
}
}
}