O'Reilly logo

Unity UI Cookbook by Francesco Sapio

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a menu with an entrance transition

We may want a more complex animation than simply an appearing/disappearing effect as covered in the previous recipe. In this case, we need to use an Animator controller along with the Animation window in order to create animations. In this recipe, you will learn how to create an entrance transition. However, feel free to change the animation when performing the following steps to fit the needs of your game. Furthermore, we will still be using the OnClick() event to cause PauseMenuButton to disappear.

How to do it...

  1. First of all, we need to create our menu. To do this, just follow the first three steps of the previous recipe, Appearing and disappearing menu.
  2. Next, we need to place Appearing Menu slightly ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required