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 ...

Get Augmented Reality Game Development 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.