EditorScenePostImportPlugin
Hereda: RefCounted < Object
Plugin para controlar y modificar el proceso de importación de una escena.
Descripción
Este tipo de plugin existe para modificar el proceso de importación de escenas, permitiendo cambiar el contenido así como añadir opciones de importación en cada etapa del proceso.
Métodos
void |
_get_import_options(path: String) virtual |
void |
_get_internal_import_options(category: int) virtual |
_get_internal_option_update_view_required(category: int, option: String) virtual const |
|
_get_internal_option_visibility(category: int, for_animation: bool, option: String) virtual const |
|
_get_option_visibility(path: String, for_animation: bool, option: String) virtual const |
|
void |
_internal_process(category: int, base_node: Node, node: Node, resource: Resource) virtual |
void |
_post_process(scene: Node) virtual |
void |
_pre_process(scene: Node) 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) |
get_option_value(name: StringName) const |
Enumeraciones
enum InternalImportCategory: 🔗
InternalImportCategory INTERNAL_IMPORT_CATEGORY_NODE = 0
There is currently no description for this enum. Please help us by contributing one!
InternalImportCategory INTERNAL_IMPORT_CATEGORY_MESH_3D_NODE = 1
There is currently no description for this enum. Please help us by contributing one!
InternalImportCategory INTERNAL_IMPORT_CATEGORY_MESH = 2
There is currently no description for this enum. Please help us by contributing one!
InternalImportCategory INTERNAL_IMPORT_CATEGORY_MATERIAL = 3
There is currently no description for this enum. Please help us by contributing one!
InternalImportCategory INTERNAL_IMPORT_CATEGORY_ANIMATION = 4
There is currently no description for this enum. Please help us by contributing one!
InternalImportCategory INTERNAL_IMPORT_CATEGORY_ANIMATION_NODE = 5
There is currently no description for this enum. Please help us by contributing one!
InternalImportCategory INTERNAL_IMPORT_CATEGORY_SKELETON_3D_NODE = 6
There is currently no description for this enum. Please help us by contributing one!
InternalImportCategory INTERNAL_IMPORT_CATEGORY_MAX = 7
There is currently no description for this enum. Please help us by contributing one!
Descripciones de Métodos
void _get_import_options(path: String) virtual 🔗
Sobrescribe para añadir opciones generales de importación. Estas aparecerán en el dock principal de importación en el editor. Añade opciones a través de add_import_option() y add_import_option_advanced().
void _get_internal_import_options(category: int) virtual 🔗
Sobrescribe para añadir opciones internas de importación. Estas aparecerán en el diálogo de importación de la escena 3D. Añade opciones a través de add_import_option() y add_import_option_advanced().
Variant _get_internal_option_update_view_required(category: int, option: String) virtual const 🔗
Debe devolver true si la vista 3D del cuadro de diálogo de importación necesita actualizarse al cambiar la opción dada.
Variant _get_internal_option_visibility(category: int, 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.
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.
void _internal_process(category: int, base_node: Node, node: Node, resource: Resource) virtual 🔗
Procesa un nodo o recurso específico para una categoría determinada.
void _post_process(scene: Node) virtual 🔗
Postprocesa la escena. Esta función se llama después de que la escena final haya sido configurada.
void _pre_process(scene: Node) virtual 🔗
Pre-process the scene. This function is called right after the scene format loader loaded the scene and no changes have been made.
Pre-process may be used to adjust internal import options in the "nodes", "meshes", "animations" or "materials" keys inside get_option_value("_subresources").
void add_import_option(name: String, value: Variant) 🔗
Añade una opción de importación específica (solo el nombre y el valor por defecto). Esta función solo puede ser llamada desde _get_import_options() y _get_internal_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() y _get_internal_import_options().
Variant get_option_value(name: StringName) const 🔗
Consulta el valor de una opción. Esta función solo puede ser llamada desde aquellos que consultan la visibilidad o el procesamiento.