O'Reilly logo

Augmented Reality Game Development by Micheal Lanham

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

Adding the menu buttons

In order to connect our scenes together, we need player input to trigger an event. We do have an event setup for when the player clicks on the monster in the Map scene. However, we also want the player to move from the Map/Catch scene to the Inventory scene and back. In order to do this, we will add some UI buttons to each of the scenes.

Since we already have the Inventory scene already open, let's begin by adding the new button to that scene:

  1. Right-click (press Ctrl and click, on a Mac) on the InventoryBag object in the Hierarchy window and select UI | Button from the context menu. This will add a button just below the Panel. Expand the Button object and then select the child Text object and press delete to remove it.
  2. Select ...

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