Hi,
I updated my project from unity 4 to the latest unity version.
However OnTriggerStay doesnt get called somehow??
Am I doing something wrong? It all works fine in older versions.
Hi,
I updated my project from unity 4 to the latest unity version.
However OnTriggerStay doesnt get called somehow??
Am I doing something wrong? It all works fine in older versions.
Same problem here, worked fine in 5.0. Does not work in 5.1.2p1 for me.
If OnTriggerEnter is called, OnTriggerExit is not called and OnTriggerStay is not called then yes this would probably be a bug.
Try creating the most simple project you can and recreate the issue with a couple colliders and a single script. If you can reproduce the problem there then submit it as a bug to unity. This will make it extremely easy for Unity to reproduce the issue and fix it.
If you cannot recreate the issue this way then there’s something else going on that might be specific to your project or how you’ve setup your scripts and objects. It may still be a bug in Unity but it might be something quite obscure and hard to find making a reproducible sample project even more useful for Unity to debug the problem.
Looks like someone already did and that’s a regression in 5.1.2p3 (didn’t manage to find my own bug report on issuetracker, id in fogbugz: 719603):
i update the unity to 5.2.0f3 and have the same problem, OnTriggerEnter work fine, OnTriggerExit, work fine but OnTriggerStay not work, never call to this :/, anoyne know how fix?
We’re also seeing this error after updating to 5.2.0f3. Our enter and exit triggers are working, and stay is not.
This seems to be the same issue that is already in the bug tracker (Unity Issue Tracker - [TriggerCollider] OnTriggerStay is not called for child objects) involving child objects.
Same Issue. So many physics bugs in the core systems of late, its making it very hard to build anything.