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); }
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); }