Plugin to control and modifying the process of importing a scene.
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.
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().
Override 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().
Should return true if the 3D view of the import dialog needs to update when changing the given option.
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").
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().
Add a specific import option. This function can only be called from _get_import_options() and _get_internal_import_options().
Query the value of an option. This function can only be called from those querying visibility, or processing.
INTERNAL_IMPORT_CATEGORY_NODE = 0INTERNAL_IMPORT_CATEGORY_MESH_3D_NODE = 1INTERNAL_IMPORT_CATEGORY_MESH = 2INTERNAL_IMPORT_CATEGORY_MATERIAL = 3INTERNAL_IMPORT_CATEGORY_ANIMATION = 4INTERNAL_IMPORT_CATEGORY_ANIMATION_NODE = 5INTERNAL_IMPORT_CATEGORY_SKELETON_3D_NODE = 6INTERNAL_IMPORT_CATEGORY_MAX = 7