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
- Character spacing value is not applied when using a specific font asset
- [Android][IL2CPP] Player crashes on __memcpy_aarch64_simd+276 when invoking native code via a plugin on some ARM64 Android devices
- [Android]Resources fail to load when the AAB build contains a large Addressables Bundle
- Unity is loading internal version of SharpZipLib instead of local version
- The Context Menu items are ordered incorrectly
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.