Skip to content

Commit a76c684

Browse files
authored
Merge pull request #11844 from Calinou/group-input-naming-convention
Document naming conventions for groups and input actions
2 parents c70f76d + e017856 commit a76c684

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

tutorials/inputs/input_examples.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,12 @@ the InputMap tab:
163163
.. image:: img/inputs_inputmap.webp
164164

165165
.. tip::
166+
166167
A new Godot project includes a number of default actions already defined.
167-
To see them, turn on ``Show Built-in Actions`` in the InputMap dialog.
168+
To see them, turn on :button:`Show Built-in Actions` in the InputMap dialog.
169+
170+
While not strictly required, it's recommended to use the ``snake_case`` naming
171+
convention for input action names.
168172

169173
Capturing actions
170174
~~~~~~~~~~~~~~~~~

tutorials/scripting/groups.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ There are two ways to add/remove nodes to groups:
2525
- During execution, by calling :ref:`Node.add_to_group() <class_Node_method_add_to_group>`
2626
or :ref:`Node.remove_from_group() <class_Node_method_remove_from_group>`.
2727

28+
.. tip::
29+
30+
While not strictly required, it's recommended to use the ``snake_case`` naming
31+
convention for group names.
2832

2933
Using the Groups dock
3034
~~~~~~~~~~~~~~~~~~~~~
@@ -58,7 +62,7 @@ All groups present in the project that were marked as Global, created from any s
5862

5963
Any other group derived from nodes in the current scene will appear under Scene Groups.
6064

61-
.. warning:: The same underlying logic is used for both Global and Scene groups.
65+
.. warning:: The same underlying logic is used for both Global and Scene groups.
6266
Groups with the same name are considered one and the same. This feature is purely organizational.
6367

6468
.. image:: img/groups_node_tab_with_multiple_types_of_groups.webp

0 commit comments

Comments
 (0)