From a4c360c66fc45efb54d440312006a5f9731544a0 Mon Sep 17 00:00:00 2001 From: AndreKoscianski Date: Fri, 29 Apr 2022 08:19:25 -0300 Subject: [PATCH] Clarify instructions on managing groups (#5316) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Rémi Verschelde --- tutorials/scripting/groups.rst | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tutorials/scripting/groups.rst b/tutorials/scripting/groups.rst index 78da351da..09dc6b75f 100644 --- a/tutorials/scripting/groups.rst +++ b/tutorials/scripting/groups.rst @@ -12,13 +12,18 @@ groups as you want. Then, in code, you can use the SceneTree to: This is a useful feature to organize large scenes and decouple code. -Adding nodes to a group ------------------------ -There are two ways to add nodes to groups: +Managing groups +--------------- + +Groups are created by adding a node to a new group name, and likewise they are +removed by removing all nodes from a given group. + +There are two ways to add/remove nodes to groups: + +- During design, by using the Node dock in the editor. +- During execution, by calling :ref:`Node.add_to_group() ` or :ref:`Node.remove_from_group() `. -- Using the Node dock in the editor. -- Calling :ref:`Node.add_to_group() `. Using the Node dock ~~~~~~~~~~~~~~~~~~~