Up to date

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

EditorSceneFormatImporter

继承: RefCounted < Object

派生: EditorSceneFormatImporterBlend, EditorSceneFormatImporterFBX, EditorSceneFormatImporterGLTF

从第三方的 3D 文件中导入场景。

描述

EditorSceneFormatImporter 允许为第三方 3D 格式定义导入器脚本。

要使用 EditorSceneFormatImporter,请先使用 EditorPlugin.add_scene_format_importer_plugin 方法注册它。

方法

PackedStringArray

_get_extensions ( ) virtual const

int

_get_import_flags ( ) virtual const

void

_get_import_options ( String path ) virtual

Variant

_get_option_visibility ( String path, bool for_animation, String option ) virtual const

Object

_import_scene ( String path, int flags, Dictionary options ) virtual


常量

IMPORT_SCENE = 1

IMPORT_ANIMATION = 2

IMPORT_FAIL_ON_MISSING_DEPENDENCIES = 4

IMPORT_GENERATE_TANGENT_ARRAYS = 8

IMPORT_USE_NAMED_SKIN_BINDS = 16

IMPORT_DISCARD_MESHES_AND_MATERIALS = 32

IMPORT_FORCE_DISABLE_MESH_COMPRESSION = 64


方法说明

PackedStringArray _get_extensions ( ) virtual const

目前没有这个方法的描述。请帮我们贡献一个


int _get_import_flags ( ) virtual const

目前没有这个方法的描述。请帮我们贡献一个


void _get_import_options ( String path ) virtual

目前没有这个方法的描述。请帮我们贡献一个


Variant _get_option_visibility ( String path, bool for_animation, String option ) virtual const

目前没有这个方法的描述。请帮我们贡献一个


Object _import_scene ( String path, int flags, Dictionary options ) virtual

目前没有这个方法的描述。请帮我们贡献一个