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

Variant _get_internal_option_update_view_required(int category, String option) virtual const

Should 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

Should 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

Should 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

Process a specific node or resource for a given category.

void _post_process(Node scene) virtual

Post-process the scene. This function is called after the final scene has been configured.

void _pre_process(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. Pre-process may be used to adjust internal import options in the "nodes", "meshes", "animations" or "materials" keys inside get_option_value("_subresources").

Variant get_option_value(StringName name) const

Query the value of an option. This function can only be called from those querying visibility, or processing.

Constants

INTERNAL_IMPORT_CATEGORY_NODE = 0

Enum: InternalImportCategory

INTERNAL_IMPORT_CATEGORY_MESH_3D_NODE = 1

Enum: InternalImportCategory

INTERNAL_IMPORT_CATEGORY_MESH = 2

Enum: InternalImportCategory

INTERNAL_IMPORT_CATEGORY_MATERIAL = 3

Enum: InternalImportCategory

INTERNAL_IMPORT_CATEGORY_ANIMATION = 4

Enum: InternalImportCategory

INTERNAL_IMPORT_CATEGORY_ANIMATION_NODE = 5

Enum: InternalImportCategory

INTERNAL_IMPORT_CATEGORY_SKELETON_3D_NODE = 6

Enum: InternalImportCategory

INTERNAL_IMPORT_CATEGORY_MAX = 7

Enum: InternalImportCategory

Source revision 5592dc3a7a61
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.