OnEnable
7/14/25Less than 1 minute
LuaBehaviour.OnEnable()
This function is called when the object becomes enabled and active.
Usage
local script = LUA.script;
--- OnEnable message from LuaBehaviour
function script.OnEnable()
-- your code here
end