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 UI interaction for selling

As described at the beginning of the chapter, players will sell their monsters by going to a place and then initiating a sale by clicking on a button. The place or restaurant will then examine the player's monsters and offer a price for what it considers the best. A player can then accept the offer by clicking on a Yes button or refuse by clicking on a No button. Even with this very simple workflow, there are still a lot of elements we will need to put together, most of which will be UIs.

We will break down building the UI into sections so that it is easier to follow. The first part we will work on is adding the UI canvas and the primary buttons by performing the following directions:

  1. From the menu, select GameObject ...

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