Exemple #1
0
        private static AssetMoveResult OnWillMoveAsset(string sourcePath, string destinationPath)
        {
            RemoveMetaEnding(ref sourcePath);
            RemoveMetaEnding(ref destinationPath);

            AssetWatchDatabase.MoveAsset(sourcePath, destinationPath);
            return(AssetMoveResult.DidNotMove);
        }
Exemple #2
0
        private static void OnUpdate()
        {
            if (updateDelay > 0)
            {
                updateDelay--;
                return;
            }

            if (AddedAssets.Count > 0)
            {
                AssetWatchDatabase.AddNewAssets(AddedAssets);
                AddedAssets.Clear();
            }

            if (RemovedAssets.Count > 0)
            {
                AssetWatchDatabase.RemoveAssets(RemovedAssets);
                RemovedAssets.Clear();
            }
        }