UNITY TUTORIAL - Introduction to Coroutines and "yield WaitForSeconds"
Videotutorial and its textual version by Francesco Milanese, published on his Youtube channel.
The video and this PDF are available for free; feel free to download and share them.
The 3D Models used in this tutorial:
Follow me on Sketchfab to keep up with my newest 3D models: https://sketchfab.com/FrancescoMilanese
Welcome to this introductory tutorial on using Coroutines in Unity.
Coroutines are functions that can be performed concurrently with the main game execution cycle.
In this tutorial, I will use a practical example to explain the concept and also introduce the WaitForSeconds function, which makes it possible to wait for the execution of an operation for a specified number of seconds.
This tutorial assumes that you have a basic understanding of C# programming in Unity. It was recorded using the 2022 version of Unity, but Coroutines are available in many programming languages and previous versions of Unity.
Videotutorial + PDF version. The product is free, so any payments made by those who want to download it will be considered as donations, which do not entitle the user to support, advice, or other content.