- Home /
about OnTriggerEnter
i have this object that uses OnTriggerEnter/Exit functions to determine is something collided with it, i am turning it on/off, so the problem is when i have the situation when i turn on the object and it does not catch the objects that are already colliding with it but only ones that collides from that point... so how to get objects that are already collided with the object when i turn trigger on?
thanks!
unity forum cross post: http://forum.unity3d.com/threads/80605-about-OnTriggerEnter?p=515727#post515727
Answer by AngryOldMan · Mar 05, 2011 at 02:50 PM
Try adding
if OnTriggerStay
and putting what you to happen in there, it may be called every update tho if you put it in function update, so if it's something like appling damage then you may only want to trigger it once? Add more info for a more specific answer.
Your answer
![](https://koobas.hobune.stream/wayback/20220613111447im_/https://answers.unity.com/themes/thub/images/avi.jpg)