I have a case in which i want OnTriggerStay
to be called, instead of OnTriggerEnter
→ OnTriggerStay
→ OnTriggerExit
call in cycle.
How this case can be produced: If you instantiate an object on another object like two objects overlapping each other. Both objects have their trigger
enabled, rigidbody attached and non-movable, but not mentioned as static
.
Remember: If a moveable object triggers, it goes through its whole cycle of Enter
, Stay
and Exit
. So, its not an issue of any component not attached to it.
My conclusion:
By the research on this case, my understanding to this point that triggering must go in cycle ofEnter
,Stay
andExit
. It can’t go directly in Stay state. Am i right???