Skip to main content

LuaBehaviour.OnTriggerEnter(Collider other)

When a GameObject collides with another GameObject, Unity calls OnTriggerEnter.

Parameters:

NameTypeDescription
otherColliderThe other Collider involved in this collision.

Usage

local script = LUA.script;

--- OnTriggerEnter message from LuaBehaviour
---@param other Collider
function script.OnTriggerEnter(other)
-- your code here
end