mirror of
https://github.com/godotengine/godot
synced 2024-11-02 14:03:02 +00:00
updated example documentation for EditorScenePostImport
This commit is contained in:
parent
c241f1c523
commit
bd78d464e6
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue