Image options objects

Next, we add the menu selection options as child objects of the ImageMenu and make them clickable. Follow these steps to create the menu game objects:

  1. With ImageMenu selected in the Hierarchy, create 3D Object | Cube and name it Image A.
  2. Set its Scale to (0.25, 0.25, 0.02).
  3. Set its Rotation to (0, 0, 180) (so the images are not upside down).
  4. Set its Position X to −0.28.

 

  1. Duplicate the objects twice, renaming them Image B and Image C, and setting the Position X to 0.0 and 0.28.
  2. From the Assets/SimpleIcons/Prefabs folder, drag the LeftArrowButton prefab into the ImageMenu hierarchy and set its Position X to −0.5.
  3. From the Assets/SimpleIcons/Prefabs folder, drag the RightArrowButton prefab into the ImageMenu hierarchy ...

Get Augmented Reality for Developers 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.