1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

Merge pull request #69714 from flatline-84/editor_scene_post_import_doc_example

updated example documentation for EditorScenePostImport
This commit is contained in:
Rémi Verschelde
2022-12-12 08:27:36 +01:00

View File

@@ -28,12 +28,12 @@
// This sample changes all node names.
// Called right after the scene is imported and gets the root node.
[Tool]
public class NodeRenamer : EditorScenePostImport
public partial class NodeRenamer : EditorScenePostImport
{
public override Object PostImport(Object scene)
public override Object _PostImport(Node scene)
{
// Change all node names to "modified_[oldnodename]"
Iterate(scene as Node);
Iterate(scene);
return scene; // Remember to return the imported scene
}
public void Iterate(Node node)