Class ScriptedImporterAssetReimporter
Unity has a strange bug when it tries to import a DLL with a ScriptedImporter and an asset that importer is targeting. The first time, it will not invoke the ScriptedImporter as it's just being imported itself; the second time the ScriptedImporter will be constructed but Unity thinks it fails. The third time, the import will succeed. This class will invoke the third time import for .gltf, .glb and .room extensions.
Implements
AssetPostprocessor
Namespace: Microsoft.MixedReality.Toolkit.Editor
Assembly: cs.temp.dll.dll
Syntax
public class ScriptedImporterAssetReimporter : AssetPostprocessor, AssetPostprocessor
Methods
OnPostprocessAllAssets(String[], String[], String[], String[])
Declaration
public static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
Parameters
Type | Name | Description |
---|---|---|
String[] | importedAssets | |
String[] | deletedAssets | |
String[] | movedAssets | |
String[] | movedFromAssetPaths |
OnPostprocessAllAssets(String[], String[], String[], String[])
Declaration
public static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
Parameters
Type | Name | Description |
---|---|---|
String[] | importedAssets | |
String[] | deletedAssets | |
String[] | movedAssets | |
String[] | movedFromAssetPaths |
Implements
AssetPostprocessor