Closed TiNovTec closed 5 years ago
@TiNovTec Thank you for the valuable feedback,we are investigating the issue.
Hey @TiNovTec! I'm afraid that is beyond the scope of this tutorial and more in the web service realm. To be clear, what you've set up in this tutorial is a simple ASP.NET Core website with an Azure Cosmos DB data store to share anchor ids between devices, which is all yours. My advice would be to take a look at the ASP.NET Core and Azure Cosmos DB documentation to add an API to the sharing service that will delete an entry in your Cosmos DB. You would then need to call that API from the app.
I hope that helps, but again, that functionality is out of scope for this Azure Spatial Anchors tutorial.
One other thing that might be interesting is the Unity API to delete an anchor from Azure Spatial Anchors: CloudSpatialAnchorsSession.DeleteAnchorAsync(CloudSpatialAnchor)
. If you want to delete an anchor from Azure Spatial Anchors, you'll need to call that as well.
@TiNovTec We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.
@craigktreasure ( but not only ) Thank you for the hints. But I am afraid I can't agree with you!
I see two big problems: The code quality of the Spatial Anchor Demo for Unity is sadly not good. At least not for a tutorial / demo. Especially the user interface integration is pretty horrible. One button for all functionality with a dictionary may seem to be elegant to the author but in my opinion a demo, to show how things work, should have a simpler architecture. In general: The demo seems unnecessary too difficult to understand and is even misleading. ( https://github.com/Azure/azure-spatial-anchors-samples/issues/55 ) The demo is incomplete because the delete feature is missing. It seems like only 1/2 of the demo is done. Like someone just decided to stop the development at a very early prototype status. Without to add the missing basic delete feature and without to at least clean up the code to make it beginner friendly.
The article only describes how to completely delete all resources like for examples all the Spatial Anchors in the Cosmos DB by deleting the whole resource group. But I'd also like to know, optimally in this demo, how to delete specific Spatial Anchors in the Cosmos DB from within the Unity app. Are there any examples or documentation available yet ?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.