- Home /
Collection of triggered colliders instead of OnTriggerStay?
Is there a way to get collection of currently triggered colliders in current frame instead of calling OnTriggerStay for each collider?
Well, yeah, I have a collection, add new collider in it within OnTriggerEnter and remove in OnTriggerExit, BUT I had encountered a problem. My colliders may be enabled and disabled dinamically, and Enter/Exit events is not handled if collider become active within my trigger.
So, I really need to have a valid collection of active colliders contained within a trigger, how to acheive this? Thanks
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613193156im_/https://answers.unity.com/themes/thub/images/avi.jpg)