LuaBehaviour.OnTriggerEnter(Collider other)
When a GameObject collides with another GameObject, Unity calls OnTriggerEnter.
Parameters:
Name | Type | Description |
---|---|---|
other | Collider | The 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