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...
- In the first step, let's create a new menu — a panel called Pop-up Menu — and three buttons as its children.
- 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.
- The next step is to create the animation, so click on the Rec button ...
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.