Get YouTube subscribers that watch and like your videos
Get Free YouTube Subscribers, Views and Likes

Unity async / await: Coroutine's Hot Sister [C# u0026 Unity]

Follow
Tarodev

The C# async / await workflow can simplify your code and give you more granular control over your game in Unity.

Learn how to convert your current coroutine workflow, what a task is, how to run sequential and synchronous code and how to return data from an asynchronous function.

UniTask: https://github.com/Cysharp/UniTask (Provides an efficient allocation free async/await integration for Unity)


❤ Become a Tarobro on Patreon:   / tarodev  

=========

SUBSCRIBE: https://bit.ly/3eqG1Z6
DISCORD:   / discord  
✅ MORE TUTORIALS:    / tarodev  


0:00 Super professional intro
0:30 Standard coroutine workflow
1:19 Converting to async / await
2:44 Usecases of async / await
3:10 Running functions sequentially
6:00 Waiting for synchronous tasks to complete
10:20 Mixing sequential and synchronous tasks
11:00 Returning data from an async function
14:20 Calling an async function from a nonasync function
15:10 WebGL caveat
15:45 Other advanced async techniques

posted by ul2pa7k