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 pop-up menu

In this recipe, we are going to see how we can use the techniques learned in the Creating a menu with an entrance transition recipe to create a pop-up menu. Pop-up menus are useful when you want to give instant feedback or even instructions to the player. They can be an unobtrusive way of providing information to the user at specific points during the game.

How to do it...

  1. In the first step, let's create a new menu — a panel called Pop-up Menu — and three buttons as its children.
  2. After we have selected it, we then click on Add Property in the Animation window. Unity asks us to choose a folder and a name for our animation, and we can rename it to MenuEntryPopUp.
  3. The next step is to create the animation, so click on the Rec button ...

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