ResourceImporter
Inherits: RefCounted < Object
Inherited by: EditorImportPlugin, ResourceImporterBitMap, ResourceImporterBMFont, ResourceImporterCSVTranslation, ResourceImporterDynamicFont, ResourceImporterImage, ResourceImporterImageFont, ResourceImporterLayeredTexture, ResourceImporterMP3, ResourceImporterOBJ, ResourceImporterOggVorbis, ResourceImporterScene, ResourceImporterShaderFile, ResourceImporterStreamedTexture, ResourceImporterSVG, ResourceImporterTexture, ResourceImporterTextureAtlas, ResourceImporterWAV
Description
Section titled “Description”Base class for resource importers.
This is the base class for Orblit’s resource importers. To implement your own resource importers using editor plugins, see EditorImportPlugin.
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| PackedStringArray | _get_build_dependencies(path: String) virtual const |
Enumerations
Section titled “Enumerations”ImportOrder
enum ImportOrder
IMPORT_ORDER_DEFAULT = 0
The default import order.
IMPORT_ORDER_SCENE = 100
The import order for scenes, which ensures scenes are imported after all other core resources such as textures. Custom importers should generally have an import order lower than 100 to avoid issues when importing scenes that rely on custom resources.
Method descriptions
Section titled “Method descriptions”_get_build_dependencies
PackedStringArray _get_build_dependencies(path: String) virtual const
Called when the engine compilation profile editor wants to check what build options an imported resource needs. For example, ResourceImporterDynamicFont has a property called ResourceImporterDynamicFont.multichannel_signed_distance_field, that depends on the engine to be build with the “msdfgen” module. If that resource happened to be a custom one, it would be handled like this:
