Kaynağa Gözat

docs: add script templates example

Ran into this today - the docs are good but could use an actual example
to confirm what they imply. Using a node name as a directory name is
kind of odd - this would have helped me figure it out at a glance.
Russell Matney 2 yıl önce
ebeveyn
işleme
fe3b20f903

+ 5 - 0
tutorials/scripting/creating_script_templates.rst

@@ -67,6 +67,11 @@ where:
 
 * ``extension``: will indicate which language the template will apply to (it should be ``gd`` for GDScript or ``cs`` for C#)
 
+For example:
+
+-  ``template_scripts/Node/smooth_camera.gd``
+-  ``template_scripts/CharacterBody3D/platformer_movement.gd``
+
 
 Default behaviour and overriding it
 -----------------------------------