Frame options objects

Next, we add the menu selection options as child objects of the FrameMenu and make them clickable.

Earlier in the chapter, you may have installed the PhotoFrames assets with the chapter's Unity package. If not, you can go ahead and create a couple more, the same way that you created the first one back in the recipe Create default picture in the Setting up the project and scene section. For example, you may create a cube, scale it to (1.2, 1.2, 0.02), with the Position set to (0, 0, 0.02), and create and assign it a colored Material. Save them as prefabs named Frame 1, Frame 2, and Frame 3.

Because the menu options are clickable, receiving input events, they must have colliders. We'll handle this by parenting the actual ...

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.