0.2.0: Added drag and drop between entries in list and fixed some bugs
This commit is contained in:
parent
dea60c6e4a
commit
1e1736f94a
8 changed files with 150 additions and 38 deletions
17
Editor/Favorites/Utilities/FavoritesPostProcess.cs
Normal file
17
Editor/Favorites/Utilities/FavoritesPostProcess.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using UnityEditor;
|
||||
|
||||
namespace Game.NavigationTool.Editor
|
||||
{
|
||||
internal sealed class FavoritesPostProcess : AssetPostprocessor
|
||||
{
|
||||
private static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
|
||||
{
|
||||
bool isDirty = deletedAssets.Length != 0 ||
|
||||
movedAssets.Length != 0 ||
|
||||
movedFromAssetPaths.Length != 0;
|
||||
|
||||
if (isDirty && FavoritesUtility.IsLoaded())
|
||||
FavoritesUtility.RefreshAll();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue