Search Issue Tracker
Duplicate
Votes
31
Found in
5.1.2p3
Issue ID
718717
Regression
Yes
[TriggerCollider] OnTriggerStay is not called for child objects
Steps to reproduce:
1. Open the attached project
2. Open and play 'trigger' scene
3. Open the scene view and move the 'Parent' game object over other cubes in 2D view
4. See the console as you move the 'Parent'. Notice only OnTriggerEnter() functions get called. OnTriggerStay() is not called
Note: If the 'Trigger' game object is not a child of other object, the OnTriggerStay function gets called as expected.
-
CallOfButy
Sep 09, 2015 20:01
I noticed this issue as well today when testing out a project on the Unity 5.2 release (previously using 5.1.2f1), although with a slight difference perhaps.
OnTrigger events appear to function properly if attached to an object WITHOUT a parent rigidbody.
If instead, the object has a parent rigidbody, then only OnTriggerEnter and OnTriggerExit events are called. OnTriggerStay appears to be ignored/consumed.
-
Gaski
Sep 09, 2015 10:31
Same Problem
-
BlueScreenISU
Aug 27, 2015 09:01
I have a similar problem, but it is only reproducable in web player.
Standalone works fine, but when using web player OnTriggerStay is not called at all (script attached to a child object)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [VFX] Custom HLSL with 'int' parameter, without the 'in/out/inout' access modifier is not supported
- [Windows] Lens Flare doesn't work in the Lens Flare Showroom URP Sample Scene
- Crash on ujob_execute_job while using OverlapBoxCommand when collisions are more than maxHits
- The validity of the multiple handles can behave differently based on the load/release operations order, when multiple Addressables.LoadAssetAsync and Addressables.Release are used to load and release the same Addressable Asset
- Dynamic text is rendered in the background when it is inside the <font> tag
This is a duplicate of issue #714376