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:
- With ImageMenu selected in the Hierarchy, create 3D Object | Cube and name it Image A.
- Set its Scale to (0.25, 0.25, 0.02).
- Set its Rotation to (0, 0, 180) (so the images are not upside down).
- Set its Position X to −0.28.
- Duplicate the objects twice, renaming them Image B and Image C, and setting the Position X to 0.0 and 0.28.
- From the Assets/SimpleIcons/Prefabs folder, drag the LeftArrowButton prefab into the ImageMenu hierarchy and set its Position X to −0.5.
- From the Assets/SimpleIcons/Prefabs folder, drag the RightArrowButton prefab into the ImageMenu hierarchy ...