Setting Up Two Cameras

Setting Up Two Cameras

The Unity Camera component includes an extra Target Display option when the build platform is set to Wii U. This option is set to TV by default. To display something else on the Wii U Gamepad, another camera must be set up.

Adding a Second Camera

The following procedure describes the required steps for adding a second camera for the lower screen.

Info

The completed project can also be downloaded from the Unity for Wii U Basics  page.

  1. In the Hierarchy pane, select Create > Camera to add a second camera.



  2. Select the newly added Camera object and in the Inspector pane, set the Target Display option to GamePad.



  3. Each scene can only have one Audio Listener component. Select one of the cameras to remove the Audio Listener from, right-click the component, and select Remove Component in the context menu.



  4. Configure and position the camera as desired in the scene.
  5. You can change the target display through script:

    GetComponent<Camera>().targetDisplay = WiiU.displayIndex.TV;
  6. The three dashed bars in the unity editor let you add more windows; one of which could be a second Game window for a dedicated GamePad screen.

 

 


CONFIDENTIAL