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
- [Android] The Player freezes when disabling Bluetooth while connected to the headphones
- Addressable bundles are not retrieved from the cache when a WebGL Player is refreshed
- Sprites are incorrectly occluded by Sprite Physics Shape culling when behind in sorting order
- CPU usage is increased when the Editor is idle with the ProBuilder Package installed
- Unstable lighting when additional light sources are added in Shader Graph nodes
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.