Azure / azure-spatial-anchors-samples

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

ASA Joins the Mixed Reality Feature Tool for Unity #254

Open msftradford opened 3 years ago

msftradford commented 3 years ago

The Azure Spatial Anchors SDK Unity packages are now available through the Microsoft Mixed Reality Feature Tool for Unity. The Mixed Reality Feature Tool is a new way for developers to discover, update, and add Mixed Reality feature packages into Unity projects. To use the Mixed Reality Feature Tool to configure ASA for your Unity project, please follow the documentation here. Note that developers can still access the ASA SDK Unity packages directly from the NPM feed instead of using the Mixed Reality Feature Tool.

ACTION REQUIRED

On May 1st, 2021, the existing Bintray NPM feed will be deprecated as a result of the sunsetting of the Bintray service. If your Unity project is configured to acquire the ASA SDK Unity packages from the Bintray feed, you must make changes to your project immediately to use the new NPM feed. Starting May 1st, developers who have not switched to the new feed may experience issues loading their ASA Unity projects with error messages like the following:

An error occurred while resolving packages:
  Project has invalid dependencies:
    com.microsoft.azure.spatial-anchors-sdk.android: Package [com.microsoft.azure.spatial-anchors-sdk.android@2.9.0] cannot be found
    com.microsoft.azure.spatial-anchors-sdk.ios: Package [com.microsoft.azure.spatial-anchors-sdk.ios@2.9.0] cannot be found
    com.microsoft.azure.spatial-anchors-sdk.windows: Package [com.microsoft.azure.spatial-anchors-sdk.windows@2.9.0] cannot be found
A re-import of the project may be required to fix the issue or a manual modification of %APPROOT%/Packages/manifest.json file.
skynard commented 3 years ago

I downloaded the Azure spatial anchors Unity/ quickstart demo trying to build in xcode but getting missing library errors Getting Apple Mach-O Linker (Id) Error Can't open file, errno= 13 file, any advice would be appreciated.

VipulKakkad-MSFT commented 3 years ago

@skynard - could you please create a new issue to track this? The "Bug report" template will ask you to fill out some information to enable us to try to repro your issue. Thanks!

dcouthojohn commented 3 years ago

When I try to build V2.8.1 of the azure spatial anchors sample it gives me this error: Assets\MRTK.Tutorials.AzureSpatialAnchors\Scripts\DisableDiagnosticsSystem.cs(1,17): error CS0234: The type or namespace name 'MixedReality' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) What steps do i take?

willyeo commented 3 years ago

@dcouthojohn I suspect the ASA SDK has not been properly installed. Did you install the the ASA SDK of the matching version? If you have the sample version of 2.8.1, you need to install the same version of SDK with the Mixed Reality Feature Tool. Also make sure you're using Unity 2019 (because Unity 2020 requires v.2.9).

Silloty1 commented 3 years ago

Hi I tried to update the ASA SDK to the lastest version (2.10.1) with the Mixed Reality Feature Tool but the update isn't available there. Is there a way you publish it?

Thank you

msftradford commented 3 years ago

@Silloty1, the new packages should be available in the tool already. You may need to refresh the package cache in the MRFT by pressing this button: image

StephenHodgson commented 3 years ago

Pretty sure the Microsoft Mixed Reality Feature Tool for Unity violates the Unity TOS for the upm packages.

https://forum.unity.com/threads/updates-to-our-terms-of-service-and-new-package-guidelines.999940/

Google also had a similar tool for Firebase that ended up getting axed over the same issues.

StephenHodgson commented 3 years ago

Why aren't these packages available via a scoped registry server that can be defined in the editor package manager settings? for example something like this: image

Unfortunately the scoped registry of the feed does not work as intended, like assumed from above. None of the packages are showing up using the registry url:

https://pkgs.dev.azure.com/aipmr/MixedReality-Unity-Packages/_packaging/Unity-packages/npm/registry/

and scope:

com.microsoft.azure.spatial-anchors-sdk
mrwellmann commented 3 years ago

Sorry for got about this here. It is possibel to use the scoped registry with https://pkgs.dev.azure.com/aipmr/MixedReality-Unity-Packages/_packaging/Unity-packages/npm/registry com.microsoft.azure.spatial-anchors-sdk.core com.microsoft.azure.spatial-anchors-sdk.ios com.microsoft.azure.spatial-anchors-sdk.android See https://github.com/Azure/azure-spatial-anchors-samples/issues/300#issuecomment-932171854 for full instructions.