With the code complete, it is now time to build our SceneSwitcher prefab. Open the editor to the Navigation scene and complete the following:
- From the menu, select GameObject | UI | Canvas. Add the SceneSwitcher component (script) to the canvas and rename it as SceneSwitcher. Set the Map Camera property on the Scene Switcher to use the Main Camera.
- Select the SceneSwitcher object in the Hierarchy window and then, from the menu, select GameObject | UI | Panel. Set the properties of the panel, as shown in the following excerpt:
Setting the properties on the Panel
- Set the Anchor by clicking on the button and ...