In this tutorial want to explain the Async Await Unity workflow so that you can run code on a separate thread to make your game run faster. I will also show you how to stop a task using a Cancellation Token as it is a bit more work than running code synchronously using a coroutine.
𝗟𝗲𝗮𝗿𝗻 𝗺𝗼𝗿𝗲 𝗮𝗯𝗼𝘂𝘁 𝗨𝗻𝗶𝘁𝘆 𝗮𝗻𝗱 𝗖# (and support the channel) by checking out my video courses:
[ Ссылка ]
𝗛𝗮𝘃𝗲 𝗮𝗻𝘆 𝗾𝘂𝗲𝘀𝘁𝗶𝗼𝗻𝘀? 𝗝𝗼𝗶𝗻 𝘁𝗵𝗲 𝗱𝗶𝘀𝗰𝗼𝗿𝗱!
[ Ссылка ]
𝗣𝗟𝗘𝗔𝗦𝗘 support the channel:
[ Ссылка ]
00:00 Introduction
00:26 Blocking the main thread
01:04 What is Main thread
03:16 Introducing Task class
04:29 Using Async and await
10:07 How to stop a Task - Cancellation Token
#unitycsharp #unity #sunnyvalleystudio
Unity Async Await - Make Your Game Run Smoother!
Теги
Unity asynchronous programmingUnity asyncUnity awaitUnity Task Runc asynchronousc async awaitunity running separate threadunity asynchronoussunny valley studioc taskUnity C How to use Async and await to create TasksUnity C How to use Asyncunity how to use awakehow to taskhow to async awaitgamedevindiedevgame developmentindie game developmentsunnyvalleystudio