diff --git a/tutorials/scripting/nodes_and_scene_instances.rst b/tutorials/scripting/nodes_and_scene_instances.rst index 1679dce0c..4150264d3 100644 --- a/tutorials/scripting/nodes_and_scene_instances.rst +++ b/tutorials/scripting/nodes_and_scene_instances.rst @@ -204,19 +204,19 @@ only available with GDScript. var scene = preload("res://MyScene.tscn") At that point, ``scene`` is a packed scene resource, not a node. To create the -actual node, you need to call :ref:`PackedScene.instance() -`. It returns a tree of nodes that you can use +actual node, you need to call :ref:`PackedScene.instantiate() +`. It returns a tree of nodes that you can use as a child of your current node. .. tabs:: .. code-tab:: gdscript GDScript - var instance = scene.instance() + var instance = scene.instantiate() add_child(instance) .. code-tab:: csharp - var instance = scene.Instance(); + var instance = scene.Instantiate(); AddChild(instance); The advantage of this two-step process is you can keep a packed scene loaded and