aboutsummaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2017-10-23 23:18:14 +0200
committerGitHub2017-10-23 23:18:14 +0200
commit8ef79ffe6838ae1710836f535884df296fe83d78 (patch)
tree6f837ae36d22c28fd540e31bedfeab3b8d1869c0 /modules/gdscript/gd_editor.cpp
parent19f83e57de89c91cfe956759e9be725bbeb20c1e (diff)
parentba779c1c0c5315ed0aea9799e8930975e1948f17 (diff)
downloadgodot-8ef79ffe6838ae1710836f535884df296fe83d78.tar.gz
godot-8ef79ffe6838ae1710836f535884df296fe83d78.tar.zst
godot-8ef79ffe6838ae1710836f535884df296fe83d78.zip
Merge pull request #12320 from mhilbrunner/issue-11994
Add _process(delta) to new script templates. Closes #11994.
Diffstat (limited to 'modules/gdscript/gd_editor.cpp')
-rw-r--r--modules/gdscript/gd_editor.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/gdscript/gd_editor.cpp b/modules/gdscript/gd_editor.cpp
index b0408917a..9d3770335 100644
--- a/modules/gdscript/gd_editor.cpp
+++ b/modules/gdscript/gd_editor.cpp
@@ -61,7 +61,11 @@ Ref<Script> GDScriptLanguage::get_template(const String &p_class_name, const Str
"func _ready():\n" +
"%TS%# Called every time the node is added to the scene.\n" +
"%TS%# Initialization here\n" +
- "%TS%pass\n";
+ "%TS%pass\n\n" +
+ "#func _process(delta):\n" +
+ "#%TS%# Called every frame. Delta is time since last frame.\n" +
+ "#%TS%# Update game logic here.\n" +
+ "#%TS%pass\n";
_template = _template.replace("%BASE%", p_base_class_name);
_template = _template.replace("%TS%", _get_indentation());