Skip to content

Latest commit

 

History

History
74 lines (50 loc) · 6.96 KB

File metadata and controls

74 lines (50 loc) · 6.96 KB

Build and configure the application

Setup your dev environment

Setup remote rendering cloud services

Note

Please note that Azure Remote Rendering (ARR) will be retired on September 30, 2025. It is no longer possible to create new accounts if your subscription did not have an active ARR account previously. More details here.

Setup collaboration cloud services

  • Ensure you have added ExitGame's Photon Voice 2 assets into your project. To add this plug-in, follow the Using Photon Voice 2 for Collaboration instructions within this repository.
  • Showcase can be optionally built with Azure Spatial Anchors enabled. In that case you need to have an Azure Spatial Anchors account. However, you can't create new accounts as Azure Spatial Anchors will be retired on November 20, 2024. More information can be found here.
  • To use ASA, ensure you have added the Azure Spatial Anchors packages to your project. To add the packages, follow the Azure Spatial Anchor Service Extension instructions within this repository.

Configure application

Choose if you want to configure the application using a configuration file or directly in the Unity Editor. Configuring in the Unity Editor is the most expedient option but risks exposing credentials through source control causing a security breach. A configuration file keeps all credentials in one place and reduces the likelihood credentials will be leaked publicly.

Configure application with a configuration file

The .gitignore file in the project excludes the arr.account.xml file. This prevents accidental commits of private/secret information. It is preferred to use arr.account.xml instead of configuring your services through the Unity Editor.

Configure application's remote rendering in Unity Editor

Note that configuring in Unity is not needed if you used a configuration file as detailed in the section above

  • Open the SampleScene scene.
  • Find the MixedRealityToolkit object within the scene hierarchy, select it to show the Mixed Reality Toolkit configuration in the Unity inspector window.
  • Under the Mixed Reality Toolkit Extension tab, find theRemoteRenderingService configuration.
    Remote Rendering Service Development Configuration
  • In theRemoteRenderingService configuration enter your Azure Remote Rendering account domain, account ID, and account key.
  • Also in the RemoteRenderingService configuration, enter your Azure Storage account name, account key, and blob container name. All remote rendered assets (.arrAsset) in the blob container will be listed within the application's menu.

Configure application's collaboration components in Unity Editor

  • Open the SampleScene scene.
  • Find the MixedRealityToolkit object within the scene hierarchy, select it to show the Mixed Reality Toolkit configuration in the Unity inspector window.
  • Under the Mixed Reality Toolkit Extension tab, find the AnchoringService configuration.
    Anchoring Service Configuration
  • In the AnchoringService configuration, enter your Azure Spatial Anchors account ID and account key.
  • Under the Mixed Reality Toolkit Extension tab, find the SharingService configuration.
    Sharing Service Configuration
  • In the SharingService configuration, select the Photon provider, and enter your Photon Realtime (PUN) ID and Photon Voice ID.

Advance application configuration

For more detailed instructions on configuring the application, see the Mixed Reality Toolkit Service Extensions document.

Build the Appx

You can build the Unity project using the typical HoloLens build process, or you can use the app's build utility under the Builder menu.

Build Menu Image

Manual building can be done with the Unity Build Menu. For Desktop, select SampleSceneDesktop scene as the only scene in the build. You will also need to disable XR support in the Project Settings > XR Plug-In Management > UWP > OpenXR menu. For HoloLens, select SampleScene scene as the only scene in the build. Ensure that XR support is enabled in the Project Settings > XR Plug-In Management > UWP > OpenXR menu.

IMPORTANT
The Photon Voice 2 binaries from the Unity Asset Store do not support ARM64. If Photon voice communications on ARM64 is needed, contact Exit Games for an ARM64 version of Photon Voice 2.