:github_url: hide .. Generated automatically by doc/tools/make_rst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the EditorScenePostImportPlugin.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_EditorScenePostImportPlugin: EditorScenePostImportPlugin =========================== **Inherits:** :ref:`RefCounted` **<** :ref:`Object` 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 | :ref:`_get_import_options` **(** :ref:`String` path **)** |virtual| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`_get_internal_import_options` **(** :ref:`int` category **)** |virtual| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Variant` | :ref:`_get_internal_option_update_view_required` **(** :ref:`int` category, :ref:`String` option **)** |virtual| |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Variant` | :ref:`_get_internal_option_visibility` **(** :ref:`int` category, :ref:`String` option **)** |virtual| |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Variant` | :ref:`_get_option_visibility` **(** :ref:`String` path, :ref:`String` option **)** |virtual| |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`_internal_process` **(** :ref:`int` category, :ref:`Node` base_node, :ref:`Node` node, :ref:`Resource` resource **)** |virtual| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`_post_process` **(** :ref:`Node` scene **)** |virtual| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`_pre_process` **(** :ref:`Node` scene **)** |virtual| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_import_option` **(** :ref:`String` name, :ref:`Variant` value **)** | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_import_option_advanced` **(** :ref:`Variant.Type` type, :ref:`String` name, :ref:`Variant` default_value, :ref:`PropertyHint` hint=0, :ref:`String` hint_string="", :ref:`int` usage_flags=7 **)** | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Variant` | :ref:`get_option_value` **(** :ref:`StringName` name **)** |const| | +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Enumerations ------------ .. _enum_EditorScenePostImportPlugin_InternalImportCategory: .. _class_EditorScenePostImportPlugin_constant_INTERNAL_IMPORT_CATEGORY_NODE: .. _class_EditorScenePostImportPlugin_constant_INTERNAL_IMPORT_CATEGORY_MESH_3D_NODE: .. _class_EditorScenePostImportPlugin_constant_INTERNAL_IMPORT_CATEGORY_MESH: .. _class_EditorScenePostImportPlugin_constant_INTERNAL_IMPORT_CATEGORY_MATERIAL: .. _class_EditorScenePostImportPlugin_constant_INTERNAL_IMPORT_CATEGORY_ANIMATION: .. _class_EditorScenePostImportPlugin_constant_INTERNAL_IMPORT_CATEGORY_ANIMATION_NODE: .. _class_EditorScenePostImportPlugin_constant_INTERNAL_IMPORT_CATEGORY_MAX: enum **InternalImportCategory**: - **INTERNAL_IMPORT_CATEGORY_NODE** = **0** - **INTERNAL_IMPORT_CATEGORY_MESH_3D_NODE** = **1** - **INTERNAL_IMPORT_CATEGORY_MESH** = **2** - **INTERNAL_IMPORT_CATEGORY_MATERIAL** = **3** - **INTERNAL_IMPORT_CATEGORY_ANIMATION** = **4** - **INTERNAL_IMPORT_CATEGORY_ANIMATION_NODE** = **5** - **INTERNAL_IMPORT_CATEGORY_MAX** = **6** Method Descriptions ------------------- .. _class_EditorScenePostImportPlugin_method__get_import_options: - void **_get_import_options** **(** :ref:`String` path **)** |virtual| Override to add general import options. These will appear in the main import dock on the editor. Add options via :ref:`add_import_option` and :ref:`add_import_option_advanced`. ---- .. _class_EditorScenePostImportPlugin_method__get_internal_import_options: - void **_get_internal_import_options** **(** :ref:`int` category **)** |virtual| Override to add internal import options. These will appear in the 3D scene import dialog. Add options via :ref:`add_import_option` and :ref:`add_import_option_advanced`. ---- .. _class_EditorScenePostImportPlugin_method__get_internal_option_update_view_required: - :ref:`Variant` **_get_internal_option_update_view_required** **(** :ref:`int` category, :ref:`String` option **)** |virtual| |const| Return true whether updating the 3D view of the import dialog needs to be updated if an option has changed. ---- .. _class_EditorScenePostImportPlugin_method__get_internal_option_visibility: - :ref:`Variant` **_get_internal_option_visibility** **(** :ref:`int` category, :ref:`String` option **)** |virtual| |const| Return true or false whether a given option should be visible. Return null to ignore. ---- .. _class_EditorScenePostImportPlugin_method__get_option_visibility: - :ref:`Variant` **_get_option_visibility** **(** :ref:`String` path, :ref:`String` option **)** |virtual| |const| Return true or false whether a given option should be visible. Return null to ignore. ---- .. _class_EditorScenePostImportPlugin_method__internal_process: - void **_internal_process** **(** :ref:`int` category, :ref:`Node` base_node, :ref:`Node` node, :ref:`Resource` resource **)** |virtual| Process a specific node or resource for a given category. ---- .. _class_EditorScenePostImportPlugin_method__post_process: - void **_post_process** **(** :ref:`Node` scene **)** |virtual| Post process the scene. This function is called after the final scene has been configured. ---- .. _class_EditorScenePostImportPlugin_method__pre_process: - void **_pre_process** **(** :ref:`Node` scene **)** |virtual| Pre Process the scene. This function is called right after the scene format loader loaded the scene and no changes have been made. ---- .. _class_EditorScenePostImportPlugin_method_add_import_option: - void **add_import_option** **(** :ref:`String` name, :ref:`Variant` value **)** Add a specific import option (name and default value only). This function can only be called from :ref:`_get_import_options` and :ref:`_get_internal_import_options`. ---- .. _class_EditorScenePostImportPlugin_method_add_import_option_advanced: - void **add_import_option_advanced** **(** :ref:`Variant.Type` type, :ref:`String` name, :ref:`Variant` default_value, :ref:`PropertyHint` hint=0, :ref:`String` hint_string="", :ref:`int` usage_flags=7 **)** Add a specific import option. This function can only be called from :ref:`_get_import_options` and :ref:`_get_internal_import_options`. ---- .. _class_EditorScenePostImportPlugin_method_get_option_value: - :ref:`Variant` **get_option_value** **(** :ref:`StringName` name **)** |const| Query the value of an option. This function can only be called from those querying visibility, or processing. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`