Unity Issue Tracker - Nested coroutines get stopped when calling StopCoroutine()
Closed
UUM-64689
Nested coroutines get stopped when calling StopCoroutine()
Unity: Scripting Runtime
Won't Fix
2023.3.X
2023.2.X
2022.3.X
2021.3.X
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