Install the Remote Rendering package for Unity
Azure Remote Rendering uses a Unity package to encapsulate the integration into Unity. This package contains the entire C# API and all plugin binaries required to use Azure Remote Rendering with Unity. Following Unity's naming scheme for packages, the package is called com.microsoft.azure.remote-rendering.
The package is not part of the ARR samples repository, and it is not available from Unity's internal package registry. You can choose one of the following options to install the Unity package.
Install Remote Rendering package using the Mixed Reality Feature Tool
The Mixed Reality Feature Tool (download) integrates Mixed Reality feature packages into Unity projects.
To add the package to a project, you need to:
- Download the Mixed Reality Feature Tool
- Follow the full instructions on how to use the tool.
- On the Discover Features page, tick the box for the Microsoft Azure Remote Rendering package under Azure Mixed Reality Services and select the version of the package you wish to add to your project
- If you want to use OpenXR, also add the Mixed Reality OpenXR Plugin package under Azure Mixed Reality Services in the same way.

To update your local package, just select a newer version from the Mixed Reality Feature Tool and install it. Updating the package may occasionally lead to console errors. If you see errors in the console, try closing and reopening the project.
Install Remote Rendering package manually
To install the Remote Rendering package manually, you need to:
Download the package from the Mixed Reality Packages NPM feed at
https://pkgs.dev.azure.com/aipmr/MixedReality-Unity-Packages/_packaging/Unity-packages/npm/registry.You can either use NPM and run the following command to download the package to the current folder.
npm pack com.microsoft.azure.remote-rendering --registry https://pkgs.dev.azure.com/aipmr/MixedReality-Unity-Packages/_packaging/Unity-packages/npm/registryIf you want to use OpenXR, run the following command to download the platform support package to the current folder.
npm pack com.microsoft.mixedreality.openxr --registry https://pkgs.dev.azure.com/aipmr/MixedReality-Unity-Packages/_packaging/Unity-packages/npm/registryOr you can use the PowerShell script at
Scripts/DownloadUnityPackages.ps1from the azure-remote-rendering GitHub repository.Edit the contents of
Scripts/unity_sample_dependencies.jsonto{ "packages": [ { "name": "com.microsoft.azure.remote-rendering", "version": "latest", "registry": "https://pkgs.dev.azure.com/aipmr/MixedReality-Unity-Packages/_packaging/Unity-packages/npm/registry" } ] }If you want to use OpenXR, you also need the platform support package. Edit the contents of
Scripts/unity_sample_dependencies.jsonto{ "packages": [ { "name": "com.microsoft.azure.remote-rendering", "version": "latest", "registry": "https://pkgs.dev.azure.com/aipmr/MixedReality-Unity-Packages/_packaging/Unity-packages/npm/registry" }, { "name": "com.microsoft.mixedreality.openxr", "version": "latest", "registry": "https://pkgs.dev.azure.com/aipmr/MixedReality-Unity-Packages/_packaging/Unity-packages/npm/registry" } ] }Run the following command in PowerShell to download the package to the provided destination directory.
DownloadUnityPackages.ps1 -DownloadDestDir <destination directory>
Install the downloaded package(s) with Unity's Package Manager.
To update a local package, just repeat the respective download steps you used and reimport the package. Updating the package may occasionally lead to console errors. If you see errors in the console, try closing and reopening the project.
Unity render pipelines
Remote Rendering works with both the Universal render pipeline and the Standard render pipeline. For performance reasons, the Universal render pipeline is recommended.
To use the Universal render pipeline, its package has to be installed in Unity. The installation can either be done in Unity's Package Manager UI (package name Universal RP, version 7.3.1 or newer), or through the Packages/manifest.json file, as described in the Unity project setup tutorial.
Next steps
Maklum balas
Kirim dan lihat maklum balas untuk