0.1.0: Added favorites window
This commit is contained in:
parent
80499f0a7e
commit
dea60c6e4a
37 changed files with 1129 additions and 0 deletions
26
Editor/Favorites/Utilities/FavoritesUtility.cs
Normal file
26
Editor/Favorites/Utilities/FavoritesUtility.cs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
using UnityEditor;
|
||||
|
||||
namespace Game.NavigationTool.Editor
|
||||
{
|
||||
internal static class FavoritesUtility
|
||||
{
|
||||
private static Favorites FAVORITES;
|
||||
|
||||
static FavoritesUtility()
|
||||
{
|
||||
FAVORITES = null;
|
||||
}
|
||||
|
||||
public static Favorites GetFavorites()
|
||||
{
|
||||
return FAVORITES ?? (FAVORITES = new Favorites());
|
||||
}
|
||||
|
||||
[MenuItem("Tools/Utilities/Favorites/Delete")]
|
||||
public static void DeleteAll()
|
||||
{
|
||||
FAVORITES = null;
|
||||
EditorPrefs.DeleteKey(Favorites.PREF_ID);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue