EditorScenePostImport

Inherits: RefCounted < Object

Post-processes scenes after import.

Description

Imported scenes can be automatically modified right after import by setting their Custom Script Import property to a tool script that inherits from this class.

The _post_import() callback receives the imported scene’s root node and returns the modified version of the scene:

Tutorials

Methods

Object

_post_import(scene: Node) virtual

String

get_source_file() const


Method Descriptions

Object _post_import(scene: Node) virtual 🔗

Called after the scene was imported. This method must return the modified version of the scene.


String get_source_file() const 🔗

Returns the source file path which got imported (e.g. res://scene.dae).