Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tutorials/plugins/running_code_in_the_editor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ If you are using :ref:`EditorScript<class_EditorScript>`:

func _run():
# `parent` could be any node in the scene.
var parent = get_scene().find_node("Parent")
var parent = get_scene().get_node("Parent")
var node = Node3D.new()
parent.add_child(node)

Expand All @@ -342,7 +342,7 @@ If you are using :ref:`EditorScript<class_EditorScript>`:
public override void _Run()
{
// `parent` could be any node in the scene.
var parent = GetScene().FindNode("Parent");
var parent = GetScene().GetNode("Parent");
var node = new Node3D();
parent.AddChild(node);

Expand Down