Copyright © 2026 Unity Technologies
This is by design and changing the behaviour of how stopping coroutines works would be a major breaking change.
Steps to reproduce:
1. Open the attached "bug-stopcoroutine-2022.3.zip" project
2. Open the "Assets/Scenes/SampleScene" scene
3. Enter the Play Mode
4. Observe the Console
Expected results: StopCoroutine() only stops the specified coroutine and does not affect nested coroutines
Actual results: StopCoroutine() stops nested coroutines
Reproducible with: 2021.3.35f1, 2022.3.20f1, 2023.2.11f1, 2023.3.0b8
Reproducible on: Windows 11 Pro, MacOS 13.6.4 (user's)
Not reproducible on: No other environments tested
Notes:
Issues you vote on will appear here