The Oculus Platform SDK sample apps are provided examples of how to initialize the SDK, perform the entitlement check, and implement some of the platform features.
These sample apps can be used either as a reference for integrating the Platform SDK in your app, or as a foundation that you can use to build your VR experience.
The features implementations are similar with native and Unity apps, so review all of the apps below, even if they are using a different development platform. The Oculus Platform SDK sample apps are provided examples of how to initialize the SDK, perform the entitlement check, and implement some of the platform features.
To run the samples you will need the following:
If you’re creating both a Rift and mobile application, you can move the mobile application into the Rift application’s App Grouping. Then, copy the OSIG files for the mobile devices you are testing to
Assets\Plugins\Android\Assets. This will allow cross-platform interactions between Rift and mobile device users. The Unity samples: VRHoops, VRVoiceChat, and VRBoardGame support cross-platform interaction.
The Platform SDK samples for Unity are a part of the Oculus Integration Asset package for Unity.
For information on how to import the asset package, see Import the Unity Package.
Once you have imported the Oculus Integration package, find the samples in the Unity Project Window, under Assets > Oculus > Platform > Samples. The following image shows an example:
Avatar Social Starter Sample
The Unity Social Starter example scene demonstrates using Oculus Avatars together with Oculus Platform features such as invites, peer-to-peer networking, and VoIP. You can find the Social Starter sample in the Avatar samples (Assets > Oculus > Avatar > Samples), also available in the Unity package. See the Unity SocialStarter Sample Scene page for details.