oculus-samples / Unity-SharedSpatialAnchors

Unity-SharedSpatialAnchors was built to demonstrate how to use the Shared Spatial Anchors API, available in the Meta XR Core SDK for the Unity game engine.
MIT License
119 stars 45 forks source link

Fix for SpatialAnchorsUnity : GetLoggedInUserCallback error on editor… #2

Closed ajmal-tiltlabs closed 1 year ago

ajmal-tiltlabs commented 1 year ago

Fix for error occuring in Editor play mode through Oculus link: SpatialAnchorsUnity: GetLoggedInUserCallback: failed with error: Oculus.Platform.Models.Error UnityEngine.Debug:Log (object) SampleController:Log (string) (at Assets/SharedSpatialAnchors/Scripts/SampleController.cs:131) PhotonAnchorManager:GetLoggedInUserCallback (Oculus.Platform.Message) (at Assets/SharedSpatialAnchors/Scripts/PhotonAnchorManager.cs:129)

Added code to wait until platform is initialized and entitlement to application is checked