You're breathtaking!
This commit is contained in:
24
Content/Editor/Scripting/ScriptTemplate.cpp
Normal file
24
Content/Editor/Scripting/ScriptTemplate.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
%copyright%
|
||||
#include "%filename%.h"
|
||||
|
||||
%class%::%class%(const SpawnParams& params)
|
||||
: Script(params)
|
||||
{
|
||||
// Enable ticking OnUpdate function
|
||||
_tickUpdate = true;
|
||||
}
|
||||
|
||||
void %class%::OnEnable()
|
||||
{
|
||||
// Here you can add code that needs to be called when script is enabled (eg. register for events)
|
||||
}
|
||||
|
||||
void %class%::OnDisable()
|
||||
{
|
||||
// Here you can add code that needs to be called when script is disabled (eg. unregister from events)
|
||||
}
|
||||
|
||||
void %class%::OnUpdate()
|
||||
{
|
||||
// Here you can add code that needs to be called every frame
|
||||
}
|
||||
Reference in New Issue
Block a user