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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
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.