Azure / azure-spatial-anchors-samples

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

Why is Unity/Assets/AzureSpatialAnchors.SDK dir missing scripts? 2.5.0+ #239

Closed ghostravenstorm closed 3 years ago

ghostravenstorm commented 3 years ago

The minimum SDK for ASA caught me by surprise. I just started working with the HoloLens and Unity ASA 4 weeks ago and I was following the MRTK tutorials for the HoloLens 2 (tutorial). I downloaded MRTK 2.4.0 and the ASA SDK 2.4.0 following the tutorial then (didn't really see a notice that the minimum version was going to change). I began working on other aspects with my project having ASA working as intended, and very recently I'm surprised that ASA isn't working at all anymore. Not even the MRTK demos I downloaded were working.

So now I'm trying to upgrade my ASA SDK to at least 2.7.0, but that hasn't been easy or straight forward. All the resources just point to this sample repo to download. I remember downloading a Unity package from the MRTK tutorials, but I can't find that link anymore. So I cloned the repo 2.7.2, but I don't understand why the SDK dir is missing scripts. I don't understand what changed between 2.4.0 and 2.7.0. How am I suppose to import this into my projects with no scripts? Are they all in Unity/Assets/AzureSpatialAnchors.Examples now? Those scripts don't seem to match what 2.4.0 had.

msftradford commented 3 years ago

Hello @ghostravenstorm, happy to help out with this. The SDK is released separately from the sample code. To configure the ASA SDK in your Unity project, please see these instructions. After importing the ASA SDK Unity packages, you should see the scripts in your Packages folder in the Unity Project pane.

ghostravenstorm commented 3 years ago

Thanks! I followed these instructions, but it's showing that refs to CloudSpatialAnchor are missing.

Now I see compile errors where CloudSpatialAnchor is mssing.

image

ghostravenstorm commented 3 years ago

Nevermind! Just needed both the ASA Core and ASA HoloLens packages,

msftradford commented 3 years ago

Awesome! Thanks for following-up.