Chapter 6. Animating the UI

In this chapter, we will cover the following recipes:

  • Appearing and disappearing menu
  • Creating a menu with an entrance transition
  • Creating a menu with an idle animation
  • Animating a button when the cursor is over it
  • Creating a pop-up menu
  • Animate the hearts of the symbolic lives counter
  • Changing the animation of the hearts of the symbolic lives counter through the script

Introduction

In this chapter, we will see how to animate our UI. We will start by making a menu appear and disappear, using only the OnClick() event. Then, we will create new animations for the UI through the Animation window. Next, we will deal with the Animator controller as well. Finally, we will see how we can animate the lives counter that we made in the ...

Get Unity UI Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.