Creating the interface

Let's create a simple interface to allow our users to change the features of the AR objects they are seeing. Let's get started:

  1. First, right-click on the Hierarchy window and select UI|Canvas. The Canvas element is the main element on the Unity interface and contains all the other elements:
 
Creating a Canvas element on the scene
  1. By default, the Canvas is located in the (0,0) point, facing back, overlaying the whole 3D scene, and with the current screen size. Double-click on its name in the Hierarchy window so that the scene focuses on it.
  2. In the Inspector window, include the following values for Canvas Scaler:

Get Enterprise Augmented Reality Projects 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.