We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2347ba8 commit 6ae3d3bCopy full SHA for 6ae3d3b
tutorials/plugins/running_code_in_the_editor.rst
@@ -329,7 +329,7 @@ If you are using :ref:`EditorScript<class_EditorScript>`:
329
330
func _run():
331
# `parent` could be any node in the scene.
332
- var parent = get_scene().find_node("Parent")
+ var parent = get_scene().get_node("Parent")
333
var node = Node3D.new()
334
parent.add_child(node)
335
@@ -342,7 +342,7 @@ If you are using :ref:`EditorScript<class_EditorScript>`:
342
public override void _Run()
343
{
344
// `parent` could be any node in the scene.
345
- var parent = GetScene().FindNode("Parent");
+ var parent = GetScene().GetNode("Parent");
346
var node = new Node3D();
347
parent.AddChild(node);
348
0 commit comments