About 15,000 results
Open links in new tab
  1. Should I use Async & Await, instead of Coroutines, in Unity?

    Aug 18, 2020 · Should I use Async & Await in Unity? Or should I keep using Coroutines? If I should use Async & Await, how can I do so in a manner comparable to Coroutines?

  2. Unity coroutine vs threads - Game Development Stack Exchange

    Jul 6, 2017 · Whats the difference between a coroutine and a thread? Are there any advantages of using one over the other?

  3. Are there limits to the number of coroutines in Unity?

    Apr 2, 2023 · So instead of admitting to themself that they screwed their architecture through over-reliance on coroutines and don't understand it anymore, people go around the Internet and tell …

  4. unity - Why can't I stop Coroutine? - Game Development Stack Exchange

    Jan 8, 2022 · In that case there is a better alternative to self-terminating the coroutine with StopCoroutine. Just use the statement yield break;. It signals to the code which processes an …

  5. StopCoroutine is not stopping my coroutine in Unity

    StopCoroutine is not stopping my coroutine in Unity Ask Question Asked 10 years, 7 months ago Modified 7 years, 11 months ago

  6. unity - How do I use coroutines to animate properly? - Game …

    Apr 27, 2017 · The Coroutine runs all the way up to its first yield statement immediately when it's started, before StatCoroutine returns, on the same thread as the update method that started it (ie. the main …

  7. unity - Coroutine to move to position passing the movement speed ...

    May 6, 2015 · The risk here is that Time.deltaTime is evaluated only once, when the coroutine starts. Since Unity's update loop uses a variable time step, this could give a mismatched step value for …

  8. unity - How to start a coroutine that will finish after the object is ...

    Apr 26, 2020 · Putting the coroutine on an object that lives for the entire duration of the coroutine (like the player) is the correct solution to this problem. If your attempt to use this didn't work, then there's …

  9. unity - When do you use StartCoroutine and when Invoke? - Game ...

    Aug 17, 2019 · A coroutine is able to pause, let the game continue running, and then do something else later. This makes them useful for processes which run over time. Also, you can pass arguments to a …

  10. unity - Why doesn't my coroutine pick up input while running and how ...

    Jun 23, 2021 · Why doesn't my coroutine pick up input while running and how can I fix it? Ask Question Asked 4 years, 4 months ago Modified 3 years, 6 months ago