I have the default SVG importer.
And I have extended it to create a custom SVG importer.
Is there a way to list all available asset importers for a given asset file, then pick one through editor scripting and then reimport that asset?
Thanks,
I have the default SVG importer.
And I have extended it to create a custom SVG importer.
Is there a way to list all available asset importers for a given asset file, then pick one through editor scripting and then reimport that asset?
Thanks,
Hi there,
You can use AssetDatabase.GetAvailableImporters to list all the importer types available for an asset.
The default importer can be obtained using AssetDatabase.GetDefaultImporter
To change the current importer, you can use AssetDatabase.SetImporterOverride.
You cannot set the default using this method though, to return to the default importer, you have to use AssetDatabase.ClearImporterOverride.
Works, thank you!
– Mandark