Search Issue Tracker
Won't Fix
Votes
0
Found in
2019.4
2020.3
2021.1.28f1
2021.2
2022.1
2022.2
Issue ID
1408707
Regression
No
OnTriggerExit method isn't invoked when disabling the Trigger Collider Component
How to reproduce:
1. Open the user's attached "My project" project
2. Enter the Play Mode in the "SampleScene" Scene
3. Select the "Player" GameObject in the Hierarchy
4. Disable the "Box Collider" Component in the Inspector
Expected result: OnTriggerExit method is invoked, "Trigger exit" message is output in the Console log
Actual result: OnTriggerExit isn't invoked
Reproducible with: 2019.4.37f1, 2020.3.31f1, 2021.2.16f1, 2022.1.0b13, 2022.2.0a8
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
- Spot Light with 'Box' Shape stops working when it collides with Mesh
- Accepting Asset Store EULA endless loop in Package Manager window
- “InvalidOperationException: Sequence contains no matching element“ error when reenabling a custom Debug Draw Mode
- Prefab that contains a layout group is marked as changed by the Editor when opened
- Emission animation does not appear when the "Emission Map" parameter is set to black in a Lit material
Resolution Note:
Unfortunately, the trigger events are not symmetrical on deletion and deactivation currently. That is, if you deactivate an object, or destroy it while inside a trigger volume, it's not guaranteed to register an on exit event due to internal technical limitations.