Interactivity

Here, we will make a few buttons, rename them, and assign them to the functions of our LaunchBall class:

  1. Look at the Hierarchy view and search for the Button child of Canvas:
  1. Click on the arrow next to the Button object to expand it, and select the child of Button labeled Text:
The Button text object
  1. Now, take a look in the Inspector at the Text component. Here, we have a wide variety of ways to change the text that is on the button:
  1. Select the word Button in the Text box. Press the Delete key and type Change Color.

Get HoloLens Beginner’s Guide 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.