question

ShacharGrembek-6038 avatar image
0 Votes"
ShacharGrembek-6038 asked asergaz commented

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

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.EventFunction`1:Invoke(T1, BaseEventData)
UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
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
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @ShacharGrembek-6038

Are you referring to this step in the tutorial? While making source code changes?

157375-image.png


0 Votes 0 ·
image.png (33.5 KiB)

The export works fine. That is the message regarding the input module 157393-screen-shot-2021-12-14-at-92937.png


0 Votes 0 ·

Thanks for the response, we are checking with the team internally.

0 Votes 0 ·

1 Answer

oafolabi-msft avatar image
0 Votes"
oafolabi-msft answered asergaz commented

@ShacharGrembek-6038 that sounds like it is possibly the issue. Are you able to run it with the StandaloneInputModule?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @ShacharGrembek-6038 ,

As suggested by @oafolabi-msft "Are you able to run it with the StandaloneInputModule?"

Thanks!

0 Votes 0 ·