EditorScenePostImportPlugin
Eredita: RefCounted < Object
Estensione per controllare e modificare il processo di importazione di una scena.
Descrizione
Questo tipo di estensione esiste per modificare il processo di importazione delle scene, consentendo di cambiare il contenuto e di aggiungere opzioni di importazione in ogni fase del processo.
Metodi
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 |
Enumerazioni
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!
Descrizioni dei metodi
void _get_import_options(path: String) virtual 🔗
Sovrascrivi per aggiungere opzioni di importazione generali. Queste appariranno nel pannello di importazione principale nell'editor. Aggiungi opzioni tramite add_import_option() e add_import_option_advanced().
void _get_internal_import_options(category: int) virtual 🔗
Sovrascrivi per aggiungere opzioni di importazione interne. Queste appariranno nella finestra di dialogo di importazione della scena 3D. Aggiungi opzioni tramite add_import_option() e add_import_option_advanced().
Variant _get_internal_option_update_view_required(category: int, option: String) virtual const 🔗
Dovrebbe restituire true se è necessario aggiornare la vista 3D della finestra di dialogo di importazione quando viene modificata l'opzione fornita.
Variant _get_internal_option_visibility(category: int, for_animation: bool, option: String) virtual const 🔗
Dovrebbe restituire true per mostrare l'opzione specificata, false per nascondere l'opzione specificata o null per ignorarla.
Variant _get_option_visibility(path: String, for_animation: bool, option: String) virtual const 🔗
Dovrebbe restituire true per mostrare l'opzione specificata, false per nascondere l'opzione specificata o null per ignorarla.
void _internal_process(category: int, base_node: Node, node: Node, resource: Resource) virtual 🔗
Elaborare un nodo o una risorsa specifica per una determinata categoria.
void _post_process(scene: Node) virtual 🔗
Post-process the scene. This function is called after the final scene has been configured.
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) 🔗
Aggiunge un'opzione di importazione specifica (solo il nome e il valore predefinito). Questa funzione può essere chiamata solo da _get_import_options() e _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) 🔗
Aggiunge un'opzione di importazione specifica. Questa funzione può essere chiamata solo da _get_import_options() e _get_internal_import_options().
Variant get_option_value(name: StringName) const 🔗
Interroga il valore di un'opzione. Questa funzione può essere chiamata solo da coloro che interrogano la visibilità o l'elaborazione.