This tutorial is great! I felt pretty comfortable with Coroutines before watching the video and I learned a lot anyway
@MQNGameDev2 жыл бұрын
Thanks for the useful info. I use coroutines quite frequently but one question recently came to mind and there is little info on the subject. When you stop a cached coroutine using: StopCoroutine(m_cachedCoroutine); It will also stop any yielded coroutines within m_cachedCoroutine(Using yield return SomeOtherCoroutine();). However, if you were to replace the yield return SomeOtherCoroutine(); with StartCoroutine(SomeOtherCoroutine); within the coroutine, SomeOtherCoroutine() will continue to run its lifecycle even after stopping the cached coroutine. Thanks again for the great info. hitting subscribe and like now :)
@ThisIsSimonK3 жыл бұрын
great introduction! One thing i'd love to see a bit more information about is the lifecycle of a coroutine. For example, I think a common pitfall is that a running coroutine will not finish if the gameobject hosting it has been destroyed!
@danielilett3 жыл бұрын
If I ever revisit the subject, I'll be sure to include stuff like that. You're absolutely right though, it's really easy to think of coroutines as code running "over there", out of sight, but it's still being executed on the same thread and on the GameObject. Destroy the GameObject, and you'll destroy all scripts running on it, including the coroutines running on those scripts.
@BarcelonaMove3 жыл бұрын
This video is amazing good. Thank you guy, you are awesome!
@danielilett3 жыл бұрын
Thanks! I'll be sure to make similar tutorials in the future :)
@PorcoPorchetto2 жыл бұрын
Man! great video and really great explanation of the topic, I'll check more of your content, and if the level Is this one, I'll sub bro :)