瀏覽代碼

Clarify instructions on managing groups (#5316)

Co-authored-by: Rémi Verschelde <[email protected]>
AndreKoscianski 3 年之前
父節點
當前提交
a4c360c66f
共有 1 個文件被更改,包括 10 次插入5 次删除
  1. 10 5
      tutorials/scripting/groups.rst

+ 10 - 5
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() <class_Node_method_add_to_group>` or :ref:`Node.remove_from_group() <String>`.
 
-- Using the Node dock in the editor.
-- Calling :ref:`Node.add_to_group() <class_Node_method_add_to_group>`.
 
 Using the Node dock
 ~~~~~~~~~~~~~~~~~~~