destroy

Script::destroy

Destruction function executed once, when the Script is destroyed.

Declaration

virtual void destroy() = 0;

Parameters

None.

Returns

None.

Notes

This function must be overloaded when creating a Script and is executed once, when the Scriptable Component attached to an Entity is destroyed.