Browse Source

Add _CLASS_SNAKE_CASE_ script template placeholder

Muller-Castro 3 tháng trước cách đây
mục cha
commit
c8583abde8

+ 3 - 0
tutorials/scripting/creating_script_templates.rst

@@ -205,6 +205,9 @@ Base placeholders
 +--------------------------+----------------------------------------------------+
 +--------------------------+----------------------------------------------------+
 | ``_CLASS_``              | The name of the new class.                         |
 | ``_CLASS_``              | The name of the new class.                         |
 +--------------------------+----------------------------------------------------+
 +--------------------------+----------------------------------------------------+
+| ``_CLASS_SNAKE_CASE_``   | The name of the new class as ``snake_case``        |
+|                          | (used in GDScript only).                           |
++--------------------------+----------------------------------------------------+
 | ``_BASE_``               | The base type a new script inherits from.          |
 | ``_BASE_``               | The base type a new script inherits from.          |
 +--------------------------+----------------------------------------------------+
 +--------------------------+----------------------------------------------------+
 | ``_TS_``                 | Indentation placeholder. The exact type and number |
 | ``_TS_``                 | Indentation placeholder. The exact type and number |