Skip to main content

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