- 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
15 lines
500 B
C#
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);
|
|
}
|
|
}
|
|
} |