The ImageMenu object and component

Like FrameMenu, the ImageMenu is an empty game object container that will have its select option objects as children.

  1. In Hierarchy, under DefaultPicture, click Create Empty game object and name it ImageMenu.
  2. Set its Position (0, −0.5, −0.1) so it's at the bottom of the picture and a little in front.
  3. Now we write the ImageMenu script component. In your Scripts folder, create a C# script named ImageMenu and open it for editing.

The ImageMenu script is like the FrameMenu one, but a little more complicated since we're adding scrolling. There will be scroll buttons for next and previous. The three menu items show three of all the possible images in the list. As you scroll, the menu item objects themselves are ...

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.