Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

ResourceImporter

继承: RefCounted < Object

派生: EditorImportPlugin, ResourceImporterBitMap, ResourceImporterBMFont, ResourceImporterCSVTranslation, ResourceImporterDynamicFont, ResourceImporterImage, ResourceImporterImageFont, ResourceImporterLayeredTexture, ResourceImporterMP3, ResourceImporterOBJ, ResourceImporterOggVorbis, ResourceImporterScene, ResourceImporterShaderFile, ResourceImporterTexture, ResourceImporterTextureAtlas, ResourceImporterWAV

资源导入器的基类。

描述

这是 Godot 资源导入器的基类。要使用编辑器插件实现你自己的资源导入器,请参考 EditorImportPlugin

教程


枚举

enum ImportOrder:

ImportOrder IMPORT_ORDER_DEFAULT = 0

默认导入顺序。

ImportOrder IMPORT_ORDER_SCENE = 100

场景的导入顺序,确保场景被导入在所有其他核心资源(如纹理)之后。自定义导入器的导入顺序一般应低于100,以避免导入依赖自定义资源的场景时出现问题。