Search Issue Tracker
By Design
Votes
0
Found in
5.5.0p3
Issue ID
866026
Regression
Yes
Reparenting causes call of OnTriggerEnter/OnTriggerExit callbacks
Steps to reproduce:
1. Open attached project
2. Open scene "repro2"
3. Run it and in console notice that OnTriggerEnter and OnTriggerExit keeps looping
Script B.cs receives OnTriggerEnter and OnTriggerExit callbacks. In those, object parenting is changed between Child -> Parent and Parent -> Child. Due to this re-parenting OnTriggerEnter and OnTriggerExit keep getting called and whole logic causes a loop.
Reproduced with: 5.5.0p3, 5.6.0b3
Not reproducible: 5.4.4f1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Sprite Masks affect Sprite Renderers outside their range when a Light2D is present with specific Target Sorting Layers selected
- URP Lens Flare is rendered in the wrong position when Render Graph Compatibility Mode is enabled and Render Scaling is not 0
- Editor crashes on DrvPresentBuffers when loading RenderDoc while using OpenGLES 3.0 or OpenGLES 2.0 Graphics API
- [Test Runner] Incorrect name under Window > Panel after project restart
- [iOS] Crash when using fallback fonts created at runtime
Add comment