- Home /
Question by
adnan-zaman-13 · Jun 29, 2017 at 11:54 AM ·
collisioncollidertriggerscript.collider2d
OnTriggerEnter2D acting like OnTriggerStay2D
It's to my understanding that OnTriggerEnter2D only runs when another object enters the trigger, and OnTriggerStay2D runs when another object stays inside the trigger.
However, I've noticed that OnTriggerEnter2D continues running even when the object enters once and just stays inside the trigger. (In my case, my object is controlled by the mouse. I move it into the trigger and just leave it there. I left a debug message, and it keeps on running.)
So then, doesn't OnTriggerEnter2D and OnTriggerStay2D do the same thing? Is this supposed to happen?
Comment