Search Issue Tracker

Fixed in 5.0.X

Votes

1

Found in

4.5.0f6

Issue ID

611563

Regression

No

OnTriggerEnter2D is called multiple times when gameobject with active Animator component hits trigger

Physics2D

-

To reproduce:
1. Open scene 'Colliderwithbug'
2. Play the scene
3. Hit space bar several times
4. Watch console when moving object hits and exits trigger. OnTriggerEnter2D gets called multiple times and OnTriggerExit2D never gets called
5. Stop scene
6. Select game object 'MovingObjectWithBug' and disable animator
7. Play the scene
8. Hit space bar several times
9. Watch console when moving object hits and exits trigger. OnTriggerEnter2D is called once object hits trigger and OnTriggerExit2D is called when object exits trigger

Add comment

Log in to post comment