5 Replacing the Oculus SDK with the Pico SDK in other Projects

Other Oculus projects can be updated in a similar way as the video player example. Such projects involve the following:

  • The Oculus player is based on the GearVrControllerTest scene.
  • A room can be replaced by following all of the steps described in the previous section.
  • A cube can be replaced by following steps 1 to 3 in the previous section.
  • To update a basic scene, just replace MainCamera with the Pvr_UnitySDK prefab.
_images/5.1.png

Figure 17 - A project containing an Oculus GearVrControllerTest scene.

Follow the steps below to replace the Oculus SDK with the Pico SDK in a UI scene:

    1. Delete the OVR components including EventSystem:
_images/5.2.png

Figure 18 – Deleting OVR components.

  1. Delete the OVR scripts and Mask:
_images/5.3.png

Figure 19 – Deleting the scripts and Mask.

    1. Drag Pvr_UnitySDK and ControllerManager from Pvr_Controller_UI into the scene:
_images/5.4.png

Figure 20 – Adding Pvr_UnitySDK and ControllerManager to the scene.

    1. Set the Canvas and add the Pvr_UICanvas script and Graphic Raycaster to LightCanvas:
_images/5.5.png

Figure 21 – Setting the Canvas and adding the Pvr_UICanvas script and Graphic Raycaster.

    1. Build and install the application.