EditorSceneFormatImporter
Hereda: RefCounted < Object
Heredado por: EditorSceneFormatImporterBlend, EditorSceneFormatImporterFBX2GLTF, EditorSceneFormatImporterGLTF, EditorSceneFormatImporterUFBX
Importa escenas de archivos 3D de terceros.
Descripción
EditorSceneFormatImporter allows to define an importer script for a third-party 3D format.
To use EditorSceneFormatImporter, register it using the EditorPlugin.add_scene_format_importer_plugin() method first.
Métodos
_get_extensions() virtual const |
|
void |
_get_import_options(path: String) virtual |
_get_option_visibility(path: String, for_animation: bool, option: String) virtual const |
|
_import_scene(path: String, flags: int, options: Dictionary) virtual |
|
void |
add_import_option(name: String, value: Variant) |
void |
add_import_option_advanced(type: Variant.Type, name: String, default_value: Variant, hint: PropertyHint = 0, hint_string: String = "", usage_flags: int = 6) |
Constantes
IMPORT_SCENE = 1 🔗
There is currently no description for this constant. Please help us by contributing one!
IMPORT_ANIMATION = 2 🔗
There is currently no description for this constant. Please help us by contributing one!
IMPORT_FAIL_ON_MISSING_DEPENDENCIES = 4 🔗
There is currently no description for this constant. Please help us by contributing one!
IMPORT_GENERATE_TANGENT_ARRAYS = 8 🔗
There is currently no description for this constant. Please help us by contributing one!
IMPORT_USE_NAMED_SKIN_BINDS = 16 🔗
There is currently no description for this constant. Please help us by contributing one!
IMPORT_DISCARD_MESHES_AND_MATERIALS = 32 🔗
There is currently no description for this constant. Please help us by contributing one!
IMPORT_FORCE_DISABLE_MESH_COMPRESSION = 64 🔗
There is currently no description for this constant. Please help us by contributing one!
Descripciones de Métodos
PackedStringArray _get_extensions() virtual const 🔗
Devuelve las extensiones de archivo admitidas para este importador de escena.
void _get_import_options(path: String) virtual 🔗
Override to add general import options. These will appear in the main import dock on the editor. Add options via add_import_option() and add_import_option_advanced().
Note: All EditorSceneFormatImporter and EditorScenePostImportPlugin instances will add options for all files. It is good practice to check the file extension when path is non-empty.
When the user is editing project settings, path will be empty. It is recommended to add all options when path is empty to allow the user to customize Import Defaults.
Variant _get_option_visibility(path: String, for_animation: bool, option: String) virtual const 🔗
Should return true to show the given option, false to hide the given option, or null to ignore.
Object _import_scene(path: String, flags: int, options: Dictionary) virtual 🔗
Realiza la mayor parte de la lógica de importación de la escena aquí, por ejemplo, usando GLTFDocument o FBXDocument.
void add_import_option(name: String, value: Variant) 🔗
Añade una opción de importación específica (solo nombre y valor predeterminado). Esta función solo puede ser llamada desde _get_import_options().
void add_import_option_advanced(type: Variant.Type, name: String, default_value: Variant, hint: PropertyHint = 0, hint_string: String = "", usage_flags: int = 6) 🔗
Añade una opción de importación específica. Esta función solo puede ser llamada desde _get_import_options().