public sealed class ImporterRegistryWhich importer claims a file.
Remarks
Told, never discovered. An assembly scan looking for [Importer] would read metadata that a trimmed publish has already deleted, and would make "which importers does this build have" a question with a different answer in the editor and in the asset compiler. Registration is a line of code where the importers are decided.
Two importers claiming one extension is an error naming both, rather than last-one-wins. The alternative is an artist's PNG being imported as a cubemap because a plugin loaded in a different order today.
Fields and properties (3)
public int CountHow many importers are registered.
public IReadOnlyCollection<IAssetImporter> ImportersEverything registered.
public IAssetImporter? FallbackThe one that takes anything nothing else claimed, or .
Methods (4)
public ImporterRegistry Add(IAssetImporter importer)Registers an importer.
public ImporterRegistry AddFallback(IAssetImporter importer)Registers the importer that takes anything nothing else claimed.
public bool TryGetForFile(string path, out IAssetImporter? importer)Finds the importer for a file.
public bool TryGetByName(string name, out IAssetImporter? importer)Finds an importer by name — the tag a .meta file carries.
Used by (14)
- AssetEditorRegistryTestsVixen.Editor.AssetEditors.Tests
- AssetPickerVixen.Editor.App
- BuiltInImportersVixen.Editor.Assets
- CreateMenuTestsVixen.Editor.App.Tests
- EditorScriptTestsVixen.Editor.Scripts.Tests
- ImportPipelineVixen.Editor.Assets
- ImportPipelineTestsVixen.Editor.Assets.Tests
- ImporterContributionTestsVixen.Editor.Assets.Tests
- ImporterContributionsVixen.Editor.Assets
- ImporterRegistryTestsVixen.Editor.Assets.Tests
- InProcessImportExecutorVixen.Editor.Assets
- ProjectVixen.Cli
- ProjectWorkspaceVixen.Editor.Assets
- TextureImporterTestsVixen.Editor.Assets.Tests