View the entire tutorial on What Up Games.
A lot goes into creating an intuitive experience for your player. Progress bars are often used to reassure the player that something is happening (such as the game loading) or give them an idea on how long something will take. In this tutorial, you will learn some techniques for creating and animating progress bars using UI Toolkit and DOTween.
UI Toolkit does not have the ability to do masking, nor does it hook directly into the Animation system. You will learn techniques for working around these two limitations. At the end of the tutorial, you will be able to:
- Design UIs by using the UI Builder tool.
- Add a runtime UI to your game.
- Animate the UI through DOTween
- Hook up DOTween animations to trigger at specific points of a “regular” animation.
- You need Unity 2020.3.0f1 (LTS) or later to follow along with this tutorial.
- This tutorial assumes you already have basic knowledge of Unity and intermediate knowledge of C#.
Tutorials may work with earlier versions.