Unity coroutines should be in every game developer's toolbox. But knowing when a coroutine finishes can be tricky or at least messy. This video looks at how coroutines can yield for other coroutines as well as take in an action, event, or delegate - both provide ways of knowing when a coroutine is done or complete.
Video Links
************
Events, Actions, Delegates: • Delegates, Events, Act...
(Original) Coroutine Video: • Unity Coroutines - Wha...
Support the Channel!
**********************
► Buy me a coffee: www.buymeacoffee.com/onewheel...
► Shop the Unity Asset Store (affiliate): assetstore.unity.com/top-asse...
► Become A Channel Member: / @onewheelstudio
► Or a Patron: / onewheelstudio
► My video and streaming kit: kit.co/onewheelstudio/tutoria...
► Buy a Game Design Book: kit.co/onewheelstudio/game-de...
Video Gear List (Amazon Affiliate)
***********************************
► Sony A6100 Camera: amzn.to/32logXz
► Sigma 16mm 1.4 Camera Lens: amzn.to/3KA4Wr4
► GoXLR (audio interface): amzn.to/35dmr03
► Shure SM7B Mic: amzn.to/3fNbV1E
► Blue Mic Arm: amzn.to/3tHgwdQ
Neewer Light: amzn.to/3rD8eRv
Light Softbox: amzn.to/3GUaHgQ
Neewer RGB Light: amzn.to/3rCTQJ9
Other Links
************
Discord: discord.onewheelstudio.com
Twitter: / onewheelstudio
Devlog: onewheelstudio.com/
Twitch: / onewheelstudio
Timestamps
*************
0:00 Intro
0:19 Backstory
0:50 The Usual Solution
1:55 Yielding to Coroutines
4:46 It's useful!! Here's an example!
5:46 Intro to the BEST solution
5:56 Using actions with coroutines
8:21 Example - yielding with actions
Негізгі бет Unity Coroutines - Neat and tidy ways to know when they're done!
Пікірлер: 31