Exemple #1
0
 /// <summary>
 /// Unregisters a callback for when a specific asset type is imported.
 /// </summary>
 public static void UnregisterAssetImportedHandlerForType(Type type, TypedAssetHandler handler)
 => GetOrCreateTypedAssetCallbacks(s_AssetImportedCallbacks, type).AssetHandler -= handler;
Exemple #2
0
 public static void UnregisterAssetImportedHandlerForType <TAsset>(TypedAssetHandler <TAsset> handler)
     where TAsset : Object
 => GetOrCreateTypedAssetCallbacks <TAsset>(s_AssetImportedCallbacks).TypedAssetHandler -= handler;
Exemple #3
0
 /// <summary>
 /// Registers to receive a callback when a specific asset type is moved.
 /// PostprocessEventArgs provided to the handler contain the old asset path.
 /// Use `AssetDatabase.GUIDToAssetPath(args.AssetGuid)` to get the new asset path.
 /// </summary>
 public static void RegisterAssetMovedHandlerForType(Type type, TypedAssetHandler handler)
 => GetOrCreateTypedAssetCallbacks(s_AssetMovedCallbacks, type).AssetHandler += handler;