Unity Samples

Contents

Import samples into Unity projects

You will need to set up your development environment and import wvr_unity_sdk.unitypackage before you import samples.

  1. Import wvr_unity_samples.unitypackage through Assets > Import Package > Custom Package….

  2. Select All components, and click Import.

    _images/import_plugin1.png

Build and run wvr_unity_hellovr.apk

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

_images/open_hellovr_scene.png

Open HelloVR, you will see the sample scene in the scene view. Click on the play button and you will 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 wvr_unity_hellovr.apk only
  2. Build and run wvr_unity_hellovr.apk on your Android devices

by clicking on WaveVR > Build Android APK

_images/build_and_run_hellovr.png

Build and run wvr_unity_vrtestapp.apk

SeaOfCube sample scene is located 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 and you will 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 wvr_unity_vrtestapp.apk only
  2. Build and run wvr_unity_vrtestapp.apk on your Android devices

by clicking on WaveVR > Build Android APK

_images/build_and_run_seaofcube.png