Skip to content

Api > LuaBehaviour > OnDisable()


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