예제 #1
0
 private async Task <XRAnchorStore> EnsureOpenXRAnchorStore()
 {
     if (openXRAnchorStore == null)
     {
         DebugLogExtra($"Getting new OpenXR XRAnchorStore.");
         //                openXRAnchorStore = await xrAnchorManager.LoadAnchorStoreAsync();
         openXRAnchorStore = await XRAnchorStore.LoadAsync(xrAnchorManager);
     }
     openXRPersistence = openXRAnchorStore != null;
     return(openXRAnchorStore);
 }
예제 #2
0
 private async Task <XRAnchorStore> EnsureOpenXRAnchorStore()
 {
     Debug.Assert(arAnchorManager != null, "Trying to open XRAnchorStore before creating ARAnchorManager.");
     if (openXRAnchorStore == null)
     {
         DebugLogExtra($"Getting new OpenXR XRAnchorStore.");
         //                openXRAnchorStore = await arAnchorManager.LoadAnchorStoreAsync();
         openXRAnchorStore = await XRAnchorStore.LoadAsync(arAnchorManager.subsystem);
     }
     openXRPersistence = openXRAnchorStore != null;
     return(openXRAnchorStore);
 }