/// <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;
public static void UnregisterAssetImportedHandlerForType <TAsset>(TypedAssetHandler <TAsset> handler) where TAsset : Object => GetOrCreateTypedAssetCallbacks <TAsset>(s_AssetImportedCallbacks).TypedAssetHandler -= handler;
/// <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;