浏览代码

Add _CLASS_SNAKE_CASE_ script template placeholder

Muller-Castro 3 月之前
父节点
当前提交
c8583abde8
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tutorials/scripting/creating_script_templates.rst

+ 3 - 0
tutorials/scripting/creating_script_templates.rst

@@ -205,6 +205,9 @@ Base placeholders
 +--------------------------+----------------------------------------------------+
 | ``_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.          |
 +--------------------------+----------------------------------------------------+
 | ``_TS_``                 | Indentation placeholder. The exact type and number |