From fe3b20f90308d3ec43c1a932ca2f04b40cb6eac1 Mon Sep 17 00:00:00 2001 From: Russell Matney Date: Tue, 2 May 2023 16:44:09 -0400 Subject: [PATCH] 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. --- tutorials/scripting/creating_script_templates.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tutorials/scripting/creating_script_templates.rst b/tutorials/scripting/creating_script_templates.rst index 5a56e89b232..1046ce80920 100644 --- a/tutorials/scripting/creating_script_templates.rst +++ b/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 -----------------------------------