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

Tarodev
Tarodev
218.5 هزار بار بازدید - 3 سال پیش - The C# async / await
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: Patreon: tarodev

=========

🔔 SUBSCRIBE: https://bit.ly/3eqG1Z6
🗨️ DISCORD: Discord: discord
✅ MORE TUTORIALS: tarodev


0:00 Super professional intro
0:30 Standard coroutine workflow
1:19 Converting to async / await
2:44 Use-cases 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 non-async function
15:10 WebGL caveat
15:45 Other advanced async techniques
3 سال پیش در تاریخ 1400/07/17 منتشر شده است.
218,523 بـار بازدید شده
... بیشتر