Search Issue Tracker

By Design

Votes

0

Found in

5.3.0f4

Issue ID

754868

Regression

No

Coroutine called after object is disabled

Scripting

-

To reproduce:
1. Open attached project
2. Play DestroyTest scene
3. Select Global object
4. Enable the bool field on Destroy Test script
5. Check output in console:

Update: Destroy
OnDisable()
DummyCR: Loop
OnDestroy()

Expected result: DummyCR: Loop should not be printed after OnDisable is called.

Reproducible: 4.7.0f1, 5.3.3p3, 5.4.0b9

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.