mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Clarify instructions on managing groups (#5316)
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
(cherry picked from commit a4c360c66f)
This commit is contained in:
committed by
Rémi Verschelde
parent
981698c580
commit
3c55be914c
@@ -12,13 +12,19 @@ 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() <class_Node_method_remove_from_group>`.
|
||||
|
||||
- Using the Node dock in the editor.
|
||||
- Calling :ref:`SceneTree.call_group() <class_SceneTree_method_call_group>`.
|
||||
|
||||
Using the Node dock
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Reference in New Issue
Block a user