Answer the question
In order to leave comments, you need to log in
How to stop a coroutine in unity3d?
I would like to stop any running coroutines at any time, stop and start again. I want to have a list of all running coroutines with any number of parameters. For example, I launch StartCoroutine(test()), then when I try to launch StartCoroutine(test()), the previous one stops and a new one starts again.
Answer the question
In order to leave comments, you need to log in
Everything is in the manual https://docs.unity3d.com/en/current/ScriptReferenc...
In general, what you mean is the coroutine manager, there are several articles on the hub, for example: https://habr.com /en/post/442622/
Yes, and you can write such a bike yourself according to your needs
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question