Part 2: Setting Up

Christiane Snyder
8/21/2016

Import the starter scene provided in the zip file below:

https://www.dropbox.com/s/5rvjcn072khwhn7/SwimStarter.zip?dl=0

After importing the base scene, import the GoogleVR unity package into your new project:

https://developers.google.com/vr/unity/download

If you haven’t already, make sure that the project is for iOS or Android in your build settings.

File > Build Settings

Then choose your mobile platform and click “Switch Platform”.

Once you have your GoogleVR package imported into the starter scene, drag the “GvrMain” prefab into the scene. (This can be found under “All Prefabs” in your “Favorites” folder)

*The “GvrMain” prefab contains everything related to the main camera and the game’s representation of the player’s head transform in the virtual world.

Once the “GvrMain” prefab is added, add the “Underwater” script (included in the starter zip file) to the “Main Camera”.

This script will add the underwater effects shown in the preview images by changing a few camera render settings.