Game Development Reference
In-Depth Information
Enter Coroutines
The proper way to implement long-running tasks in Unity is through the use of a feature
called Coroutines. In simple words, Coroutines are Unity's way of launching code in the
background, but they do have a few caveats and features around them though.
Note
Coroutines, by default, run on the same thread as the normal game loop and use the same
resources as the game loop (albeit at the same time). To enable threading (running pro-
cesses on separate processors or pipelines, distributing the workload), you will need Unity
Pro.
Search WWH ::




Custom Search