This website uses cookies to improve our services and deliver relevant ads.
By interacting with this site, you agree to this use. For more information, see our Cookies Policy
This section describes the sample Unity applications provided by Oculus as a reference for development.
To run the pre-built demos, download the appropriate demo zip file for the platform you need.
Run the OculusUnityDemoScene.exe (Windows) or OculusUnityDemoScene.app (Mac) pre-built demo. If prompted with a display resolution dialog, hit the Play button. The demo will launch in full-screen mode.
To run the pre-built demos, you must first install the demo packages (.apk) and sample media to your Android device.
Connect to the device via USB and open a command prompt. Run the installToPhone.bat script included with the SDK. This script will copy and install both the Unity and Native sample applications as well as any sample media to your Android device. You should now see application icons for the newly-installed apps on the Android Home screen.
For more information about these sample apps please review the Initial SDK Setup section in Device and Environment Setup Guide.
To test a sample application, perform the following steps:
The app should now launch.
In BlockSplosion, the camera position does not change, but the user's head orientation will be tracked, allowing them to aim before launching a block.
Gamepad Control
Mouse Control
Using the mouse will rotate the player left and right. If the cursor is enabled, the mouse will track the cursor and not rotate the player until the cursor is off screen.
In Shadowgun, locomotion allows the camera position to change.