Unity iOS app with Azure Spatial Anchors - Unable to place anchor

Shachar Grembek 1 Reputation point
2021-12-12T13:39:38.787+00:00

I am running the Azure Spatial Anchors Basic Demo on Unity (2020.3.23f1) and iOS (latest iOS) with ASA 2.11.0 and for some reason I cannot place the Anchors when running it on my iPhone (iPhone 12 Pro).
When reaching the phase "Tap a surface to add the local Anchor" nothing happens when I tap the screen, nor do I see any log printed in my Xcode.

The last log I see in Xcode is the following:
"State from DemoStepBusy to DemoStepStartSession
Microsoft.Azure.SpatialAnchors.Unity.Examples.AzureSpatialAnchorsBasicDemoScript:set_currentAppState(AppState)
Microsoft.Azure.SpatialAnchors.Unity.Examples.<AdvanceDemoAsync>d__14:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start(TStateMachine&)
Microsoft.Azure.SpatialAnchors.Unity.Examples.AzureSpatialAnchorsBasicDemoScript:AdvanceDemoAsync()
Microsoft.Azure.SpatialAnchors.Unity.Examples.<AdvanceDemo>d__16:MoveNext()
System.Runtime.CompilerServices.AsyncVoidMethodBuilder:Start(TStateMachine&)
Microsoft.Azure.SpatialAnchors.Unity.Examples.DemoScriptBase:AdvanceDemo()
UnityEngine.Events.UnityAction:Invoke()
UnityEngine.Events.UnityEvent:Invoke()
UnityEngine.EventSystems.EventFunction1:Invoke(T1, BaseEventData) UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction1)
UnityEngine.InputSystem.UI.InputSystemUIInputModule:ProcessPointerButton(ButtonState&, PointerEventData)
UnityEngine.InputSystem.UI.InputSystemUIInputModule:ProcessPointer(PointerModel&)
UnityEngine.InputSystem.UI.InputSystemUIInputModule:Process()"

I wonder if it is somehow related to the fact I had to replace the Input Module / System with the new one ("Replace with InputSystemUIInputModule")

Azure Spatial Anchors
Azure Spatial Anchors
An Azure service that is used to build immersive three-dimensional applications and experiences that map, persist, and restore content or points of interest at real-world scale.
87 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Oladapo Afolabi 6 Reputation points
    2021-12-28T07:33:24.37+00:00

    @Shachar Grembek that sounds like it is possibly the issue. Are you able to run it with the StandaloneInputModule?