Skip to content

Commit fe3b20f

Browse files
committed
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.
1 parent 97fc78b commit fe3b20f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tutorials/scripting/creating_script_templates.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ where:
6767

6868
* ``extension``: will indicate which language the template will apply to (it should be ``gd`` for GDScript or ``cs`` for C#)
6969

70+
For example:
71+
72+
- ``template_scripts/Node/smooth_camera.gd``
73+
- ``template_scripts/CharacterBody3D/platformer_movement.gd``
74+
7075

7176
Default behaviour and overriding it
7277
-----------------------------------

0 commit comments

Comments
 (0)