0.2.0: Added drag and drop between entries in list and fixed some bugs

This commit is contained in:
Anders Ejlersen 2021-02-14 13:01:59 +01:00
parent dea60c6e4a
commit 1e1736f94a
8 changed files with 150 additions and 38 deletions

View 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();
}
}
}