After 7 days of trying and trying I must ask for help. I must use HoloLens 1st gen, this is why I then use Unity 2019.4.36f1 since with Unity 2020 and greater it's not supported anymore on HoloLens 1st gen. I also use MRTK 2.8.2 but I noticed that to solve some issue I need to work with 2.7.3 sometimes which is confusing.
I use Azure Spatial Anchor v2.7.2 :
The goal
I want to perform something very simple : create a spatial anchor in order to see a virtual object on the HoloLens and on the Android App.What I've tried
https://learn.microsoft.com/en-us/azure/spatial-anchors/tutorials/tutorial-new-unity-hololens-app?tabs=azure-portal but on Unity 2019.4.36f1 I get the error :
The type or namespace name 'WindowsMR' does not exist in the namespace 'UnityEngine.XR'
because it's made for Unity 2020.3. I tried to use MRTK 2.7.3 but the error remains the same when I try to build and I also tried to use Azure Spatial Anchor 2.7.0 and it's the same aswellhttps://learn.microsoft.com/en-us/windows/mixed-reality/dev开发者_JAVA百科elop/unity/tutorials/mr-learning-sharing-03 but it's the same issue in the end :
The type or namespace name 'WindowsMR' does not exist in the namespace 'UnityEngine.XR'
I really start to be confuse since I see so many YouTube videos where people have a very simple but exactly what I want for an app where the first user tap to place an anchor on the shape of a cube, and then the other users can see this anchor and interact with it.
Conclusion
I'd really like to find a ressource in order to :- Create an anchor
- Save it on Azure Spatial Anchor
- Retrieve the anchor
- Interact with it
精彩评论