Skip to content

Latest commit

 

History

History
64 lines (36 loc) · 3.61 KB

File metadata and controls

64 lines (36 loc) · 3.61 KB

Project Configuration

To make this project functional in the editor or on a device, some initial setup is required.

Application Configuration

To run the project and use platform services, create an application on the Meta Horizon Dashboard. Select Meta Horizon Store for your new app. The following sections describe the necessary configuration for the application to run.

Data Use Checkup

Request the required data for the application in the Data Use Checkup section.

Configure the required Data Usage:

  • User Id: Oculus Username
  • User Profile: Oculus Username

After completing the configuration, submit the request by clicking the submit button at the bottom.

Set the App ID

Set the application ID in your Unity project. Find the App ID under Development and then API.

Place the App ID in the Assets/Resources/OculusPlatformSettings.asset.

Android Keystore and Package Name

To upload your APK to the Meta Horizon Store for testing with other users, configure the Android Keystore and Package Name. Create a new Keystore in Player Settings and set a unique package name. This package name identifies your application and cannot be changed later. Set a unique Bundle Version Code and increase it for each new APK version.

Photon Fusion Configuration

Note

This is only required for multiplayer mode.

To get the sample working, configure Photon with your account and application. The Photon base plan is free.

  • Visit photonengine.com and create an account.
  • In your Photon dashboard, click Create A New App.
  • Enter a name for the app and select Fusion. Then click Create.
  • Your new app will appear on your Photon dashboard. Click the App ID to reveal and copy the full string.
  • Open your Unity project and paste your Fusion App ID in Assets/Photon/Fusion/Resources/PhotonAppSettings under Fusion, then Realtime Settings.

The Photon Realtime transport should now work. Verify network traffic on your Photon account dashboard.

Upload to Release Channel

To enable colocation using Shared Spatial Anchors, upload an initial build to a release channel. For instructions, visit the developer center. To test with other users, add them to the channel or invite them as organization members. More information is available in the documentation.

Once the initial build is uploaded, you can use any development build with the same application ID without uploading every build to test local changes.

Headset Permissions

When you first launch the application, a permission popup will ask to share spatial data. Confirm to use colocation. If you initially denied and want to enable the feature later, go to Settings > Privacy & Safety > Device Permissions > Enhanced spatial services and enable it.