Class reference
EditorScenePostImportPlugin
Inherits RefCounted
Plugin to control and modifying the process of importing a scene.
Description
This plugin type exists to modify the process of importing scenes, allowing to change the content as well as add importer options at every stage of the process.
Methods
void _get_import_options(String path) virtual
String path) virtualOverride 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().
void _get_internal_import_options(int category) virtual
int category) virtualOverride to add internal import options. These will appear in the 3D scene import dialog. Add options via add_import_option() and add_import_option_advanced().
Variant _get_internal_option_update_view_required(int category, String option) virtual const
Variant _get_internal_option_update_view_required(int category, String option) virtual constShould return true if the 3D view of the import dialog needs to update when changing the given option.
Variant _get_internal_option_visibility(int category, bool for_animation, String option) virtual const
Variant _get_internal_option_visibility(int category, bool for_animation, String option) virtual constShould return true to show the given option, false to hide the given option, or null to ignore.
Variant _get_option_visibility(String path, bool for_animation, String option) virtual const
Variant _get_option_visibility(String path, bool for_animation, String option) virtual constShould return true to show the given option, false to hide the given option, or null to ignore.
void _internal_process(int category, Node base_node, Node node, Resource resource) virtual
int category, Node base_node, Node node, Resource resource) virtualProcess a specific node or resource for a given category.
void _post_process(Node scene) virtual
Node scene) virtualPost-process the scene. This function is called after the final scene has been configured.
void _pre_process(Node scene) virtual
Node scene) virtualPre-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(String name, Variant value)
String name, Variant value)Add a specific import option (name and default value only). This function can only be called from _get_import_options() and _get_internal_import_options().
void add_import_option_advanced(int type, String name, Variant default_value, int hint = 0, String hint_string = "", int usage_flags = 6)
int type, String name, Variant default_value, int hint = 0, String hint_string = "", int usage_flags = 6)Add a specific import option. This function can only be called from _get_import_options() and _get_internal_import_options().
Variant get_option_value(StringName name) const
Variant get_option_value(StringName name) constQuery the value of an option. This function can only be called from those querying visibility, or processing.