diff --git a/tutorials/plugins/running_code_in_the_editor.rst b/tutorials/plugins/running_code_in_the_editor.rst index ccfd6d3b0c6..032ebf0637b 100644 --- a/tutorials/plugins/running_code_in_the_editor.rst +++ b/tutorials/plugins/running_code_in_the_editor.rst @@ -329,7 +329,7 @@ If you are using :ref:`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) @@ -342,7 +342,7 @@ If you are using :ref:`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);