unity on trigger exit code example Example: on trigger stay unity private void OnTriggerStay(Collider other) { // Do some stuff }