Skip to main content

LuaBehaviour.OnDisable()

This function is called when the behaviour becomes disabled.

Usage

local script = LUA.script;

--- OnDisable message from LuaBehaviour

function script.OnDisable()
-- your code here
end