Azure / azure-spatial-anchors-samples

Azure Spatial Anchors sample code
Other
293 stars 138 forks source link

Error prevents building For UWP in Unity 2020.3.43 #392

Open SimonDarksideJ opened 1 year ago

SimonDarksideJ commented 1 year ago

Description

A clear and concise description of what the issue is. The following issue prevents building a UWP build in Unity 2020

Library\PackageCache\com.microsoft.azure.spatial-anchors-sdk.core@fc109db5a78b\Runtime\Scripts\SpatialAnchorManager.cs(16,22): error CS0234: The type or namespace name 'WindowsMR' does not exist in the namespace 'UnityEngine.XR' (are you missing an assembly reference?)

Which appears to use a legacy namespace that no longer exists in Unity? Obviously, there should never be a case where the addition of the ASA packages should prevent a build.

Steps to reproduce the issue

If the issue occurs in one of the ASA sample apps, please detail the steps required to reproduce it. Otherwise, provide details on how to reproduce it in your custom app.

  1. Create a new Unity 2020 project
  2. Import the 2.13.3 release into the project
  3. Switch to UWP Platform
  4. Build.
  5. See error

Development information (please complete the following information)

darax commented 1 year ago

@SimonDarksideJ does the issue go away if you install the OpenXR plugin? ASA requires either the WindowsMR plugin or the OpenXR plugin.