Search Issue Tracker
By Design
Votes
0
Found in
5.4.0f3
Issue ID
859523
Regression
No
Collider OnCollisionExit/OnTriggerExit are not called when collider is disabled while inside
How to reproduce:
1. Open attached "New Unity Project (29)" project
2. Enter Play mode
3. Move Disabled cube into a green cube and enable the first one
4. Move the same cube to the red one and disable recently move cube
Expected: when disabling cube "OnColliderExit" gets called
Actual: when disabling cube "OnColliderExit" doesn't get called
Reproducible: 2020.2.0a18
-
jhalesy
Aug 19, 2020 10:00
Had this issue, a solution is just to turn the collider into a trigger rather than disabling it.
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
- "EndLayoutGroup: BeginLayoutGroup must be called first." error is thrown after building the project when Scripting Backend and Api Compatibility Level fields are changed
- GameObjects with Local Volumetric Fog Component and Fog Volume Shader Graph produce numerous render errors when there are more than 300 of them generated in the Scene
- Adaptive Probe Volumes system places some Light Probes in incorrect positions when Generating Lighting
- Constant buffer is not properly updated for the depth pass when rendering a custom mesh on DirectX12
- AfterRendering Event of the URP RendererFeatures renders with inverted Y axis
Resolution Note:
A disabled game object shouldn’t have any impact, that is why collision is not generated