The Unity SocialStarter example scene demonstrates using Oculus Avatars together with other Oculus Platform features such as invites, peer-to-peer networking, and VoIP.
This scene depicts a virtual room into which you can invite your friends who are also running the scene. As your friends join your room, the scene sets up a VoIP connection to transmit voice packets and a peer-to-peer connection to transmit Avatar packets.
For full functionality, this sample scene requires the following:
Create a new Unity project.
Import the Oculus Integration from the Unity Asset Store.
From the Oculus Dashboard, create an Oculus Rift app and copy the App ID. An App ID is required to use Avatar and Platform features. There must be a build associated with the App ID uploaded to a release channel on the Dashboard for full functionality. The email address associated with your Oculus account must be added to the Users list of the release channel.
Open the SocialStarter scene in
From the Unity Editor menu bar, select Oculus > Avatars > Edit Configuration and place your App ID in the two fields for Oculus Rift App Id and Oculus Go/Quest or Gear VR.
Confirm that the prefabs are set correctly. Select the OVRPlayerController object in the scene:
When you start the sample, you are placed in a virtual room with a floor and a sphere. The colors of the floor and sphere convey information about room ownership and online status.
When a user joins your room, a VoIP connection and a P2P connection will be set up. The P2P connection is used to send Avatar and positional updates. Note that this functionality only works if you have uploaded a build to the Dashboard for the App ID you used.
Your left hand should be holding the control instructions. If you do not see the instructions, make sure that Rift Material and Gear Material are set properly as described in the setup instructions.
Oculus Rift and Oculus Quest Controls Left stick click: Toggle display of instructions. Y Button: Toggle the sky camera. This allows you to view the scene from a static third-person camera. X Button: Room invites. This will bring up the invite UI, which will show a list of your friends that you can invite to the room. This may take a second or two to pop up. Note that this functionality only works if you have uploaded a build to the Dashboard for the App ID you used. Left stick: Move around. Right stick: Rotate direction.
Oculus Go and Gear VR Controls Trigger: Toggle display of instructions. Touchpad click: Toggle the sky camera. Back button: Room invites. Touchpad: Move around.