Mastering Coroutines in Unity
What you'll learn
- Using of coroutines inside Unity with C#
- Create state machines with coroutines
- Create custom UI animation system
- Optimize slow methods with coroutines
- Create simple idle clicker game
- Programming tips and tricks
Requirements
- You should be familiar with C# and the Unity Game Development Engine.
- Mac or PC with Unity 3d 2019.1 or later installed
- You will need to be able to read and write simple programs
Description
The course begins with a basic explanation of coroutines and why they are so useful.
Then you'll learn the difference between normal c# methods, update method and coroutine.
Following on, we will start to build our UI animation system driven by coroutines.
Our UI Animation will include some advanced techniques like:
how to pause and resume the coroutine
how to check if coroutine is running
how to delay coroutine
how to get a callback from the coroutine
how to start multiple coroutines all at once
how to write custom yield instruction
Later when our system is finished we will export it as Unity package so we will be able to use it in our next projects.
Our first project where we will use our UI Animation system will be simple animated game Menu. Which will show us the flexibility of our system. The second biggest project will be a complete idle clicker game, full of interactive animations. The interesting fact will be that the game is created very effective without any update method.
In the end, we will learn how to create State machines with the help of coroutines and also one very cool way how to optimize slow methods.
Why learn from me?
I created this course to share my passion for making games and help others to simplify their work.
I am trying to find effective and fast methods to solve problems, so I hope you will find some of my systems and tips and tricks useful also for you.
What you’ll learn
What are coroutines and what they are good for
Create UI Animation System
Callbacks from coroutines
Trigger Actions When Property is changed
Program Simple Game Without the need of Using Update Method
Optimize slow methods with coroutines
Write custom yield instructions
Create simple state machines with coroutines
Are there any course requirements or prerequisites?
Mac or PC.
You will need to download and install Unity 19.1 or later
You should be familiar with C# and the Unity Game Development Engine
Who this course is for:
- Intermediate Unity developers with a basic working knowledge of C# scripting
- Anyone keen to find out how coroutines in Unity works
- Those wanting to create UI animation system, state machines, and learn how to optimize slow methods.
Instructor
Hi, my name is Alex Urik.
I am a freelance game developer for about 5 years. Before I was working as a movie VFX artist for about 10 years and I worked on several feature films including Transformers or Batman vs Superman.
I always had a passion for programming and when I discovered Unity 3d engine, I was really happy that also in game development you can use high-level programing language like C#. Which I really enjoy using.
During my career as a game developer, I released a couple of assets in the Unity asset store and a couple of games for iOS and Android, and also I created several Unity courses and tutorials.
I always like to solve interesting problems and create tools and systems which speed up my work.
I love programming and I think learning from somebody else is the fastest way how to learn new things. That's why I would like to share my knowledge and I hope you will like my courses