コード例 #1
0
 static AssetMoveResult OnWillMoveAsset(string sourcePath, string destinationPath)
 {
     if (AssetWatcher.AssetAtPathIsGraphAsset(sourcePath))
     {
         Version++;
     }
     return(AssetMoveResult.DidNotMove);
 }
コード例 #2
0
 static AssetDeleteResult OnWillDeleteAsset(string assetPath, RemoveAssetOptions options)
 {
     if (AssetWatcher.AssetAtPathIsGraphAsset(assetPath))
     {
         Version++;
     }
     return(AssetDeleteResult.DidNotDelete);
 }