- Home /
Question by
Vinicius_plo · Nov 14, 2017 at 05:57 PM ·
animationcollider2d
Unity is considering the colision even when the box collider 2D component is disabled
When I updated to 2017.2 version my 2D colliders start to present a new issue:
I use a box collider 2D on trigger mode to detect attack collision in my 2D game and I use an "OnTriggerEnter2D" function to detect the colision, and I turn on and off during attack animation, but now the function does not reset when I turn off the box collider 2D. In other words, unity is considering the colision even with the box collider 2D disabled. I added a print in the "OnTriggerExit2D" function to validate and it is exactly what is happening. Is it an Unity bug? There is some configuration to make it work like in the previous version?
Thanks.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612142844im_/https://answers.unity.com/themes/thub/images/avi.jpg)