UNITY - Introduction to Coroutines and "yield WaitForSeconds"

Опубликовано: 14 Май 2026
на канале: Francesco Milanese | CG Tutorials
369
3

Text version with screenshots and additional resources here:
https://www.francescomilanese.com/tut...

You can find many 3D models, which can be used in Blender or other softwares, on the Adobe Stock 3D website at the following link:
https://stock.adobe.com/search/3d-assets

FREE PDF text version:
https://francescomilanese.gumroad.com...

** Please notice that I am not a native English speaker, so this is also a way for me to practice and improve; then, if you have suggestions on syntax and pronunciation, please write them in the comments: I appreciate them! Anyway, all my videos have subtitles! **

Hello everyone!
Welcome to this basic 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.

----------

🇪🇸 Versión textual con capturas de pantalla y otros recursos aquí:
https://www.francescomilanese.com/es/...

🇧🇷 Versão textual com capturas de tela e outros recursos aqui:
https://www.francescomilanese.com/pt/...

🇫🇷 Version textuelle avec captures d’écran et autres ressources ici :
https://www.francescomilanese.com/fr/...

🇩🇪 Textversion mit Screenshots und weiteren Ressourcen hier:
https://www.francescomilanese.com/de/...

🇯🇵 スクリーンショットやその他の資料を含むテキスト版はこちら:
https://www.francescomilanese.com/ja/...

🇰🇷 스크린샷과 기타 자료가 포함된 텍스트 버전은 여기에서 확인할 수 있습니다:
https://www.francescomilanese.com/kr/...

🇷🇺 Текстовая версия со скриншотами и дополнительными materialami qui:
https://www.francescomilanese.com/ru/...

🇨🇳 包含截图和其他资源的文本版本在此:
https://www.francescomilanese.com/zh/...