Creating a menu with an idle animation

The previous recipes taught you how to make a menu appear or create a transition that allows the menu to enter the screen. We are now going to see how to make an idle animation, where the object just cycles through a general animation, such as hovering or pulsing. To do this, we need to create an animation that can be played as a loop. In this recipe, we will see how to change the color background of the pause menu that we created in the first recipe, Appearing and disappearing menu.

How to do it...

  1. First of all, we need to create a menu. We can follow the first three steps of the previous recipe, Appearing and disappearing menu.
  2. Next, select Appearing Menu and then click on Add Property inside of the Animation ...

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.