Unity Samples

Contents

Import samples into Unity projects

You’ll need to set up your development environment and import wavevr.unitypackage before you import samples.

  1. Import sample.unitypackage through Assets > Import Package > Custom Package....

  2. Select All components, and click Import.

    _images/import_plugin1.png

Build and run HelloVRUnity.apk

HelloVRUnity sample scene is in Assets/Samples/HelloVR/Scenes.

_images/open_hellovr_scene.png

Open HelloVR, you’ll see the sample scene in the scene view. Click on the play button, you’ll see the scenes with binocular rendering in the game view.

To control the viewport in game view:

  • Ctrl + Left mouse button
  • Alt + Left mouse button
_images/hellovr_scene.png

You can...

  1. build HelloVRUnity.apk only
  2. build and run HelloVRUnity.apk on your Android devices

by clicking on WaveVR > Build Android APK

_images/build_and_run_hellovr.png

Build and run SeaOfCube.apk

SeaOfCube sample scene is in Assets/Samples/SeaOfCube/Scenes.

_images/open_seaofcube_scene.png
  • Open Main, click on Add Open Scenes in File > Build Settings....
  • Open SeaOfCubeWithTwoHead, click on Add Open Scenes in File > Build Settings....

Make sure you check both the Main scenes and the SeaOfCubeWithTwoHead scenes on the Scenes In Build list.

_images/seaofcube_build_settings.png

Click on the play button, you’ll see the scenes with binocular rendering in the game view. In the game view, you can click the items on the menu by gazing at the item you want.

To control the viewport in game view:

  • Ctrl + Left mouse button
  • Alt + Left mouse button
_images/seaofcube_scene1.png
_images/seaofcube_scene2.png

You can...

  1. build SeaOfCube.apk only
  2. build and run SeaOfCube.apk on your Android devices

by clicking on WaveVR > Build Android APK

_images/build_and_run_seaofcube.png