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

Physics

-

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

  1. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.