page_type | name | description | languages | products | |||
---|---|---|---|---|---|---|---|
sample |
Azure Spatial Anchors Sample |
This sample project shows how to use Azure Spatial Anchors on the HoloLens 2 using Unity and OpenXR. |
|
|
This sample scene is being deprecated and will no longer be updated. Please note that Azure Spatial Anchors (ASA) will be retired on November 20, 2024, read the Azure Spatial Anchors Retirement accounment for more details.
Supported Unity versions | Built with XR configuration |
---|---|
Unity 2020 or higher | Mixed Reality OpenXR Plugin 1.4.1 |
Azure Spatial Anchors is a cross-platform developer service that allows you to create mixed reality experiences with objects that persist their locations across devices over time. This sample project shows how to use Azure Spatial Anchors on the HoloLens 2 using Unity and OpenXR.
File/folder | Description |
---|---|
Assets |
Unity assets, scenes, prefabs, and scripts. |
Packages |
Project manifest and packages list. |
ProjectSettings |
Unity asset setting files. |
UserSettings |
Generated user settings from Unity. |
.gitignore |
Define what to ignore at commit time. |
README.md |
This README file. |
- If you don't have an Azure subscription, create a free account before you begin.
- Use your Azure subscription to create a spatial anchors resource.
- Configure the account information to be used in this project, writing the
Account Key
,Account ID
, andAccount Domain
intoAssets\AzureSpatialAnchors.SDK\Resources\SpatialAnchorConfig.asset
. - Build and run the project.