From 08a9a003300ef9c04ce5bd8a8633152bf9178853 Mon Sep 17 00:00:00 2001 From: LcrW Date: Mon, 10 May 2021 18:30:46 +0100 Subject: [PATCH] Update ScriptTemplate.cs --- Content/Editor/Scripting/ScriptTemplate.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Content/Editor/Scripting/ScriptTemplate.cs b/Content/Editor/Scripting/ScriptTemplate.cs index c9ae5068e..2a150306d 100644 --- a/Content/Editor/Scripting/ScriptTemplate.cs +++ b/Content/Editor/Scripting/ScriptTemplate.cs @@ -4,23 +4,30 @@ using FlaxEngine; namespace %namespace% { + /// + /// %class% Script. + /// public class %class% : Script { + /// public override void OnStart() { // Here you can add code that needs to be called when script is created, just before the first game update } - + + /// public override void OnEnable() { // Here you can add code that needs to be called when script is enabled (eg. register for events) } + /// public override void OnDisable() { // Here you can add code that needs to be called when script is disabled (eg. unregister from events) } + /// public override void OnUpdate() { // Here you can add code that needs to be called every frame