Skip to content

Commit 3f3d3a7

Browse files
committed
Fixed wording on Deleting Anchor in Unity
1 parent 30f4737 commit 3f3d3a7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

articles/spatial-anchors/how-tos/create-locate-anchors-unity.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,7 @@ Learn more about the [DeleteAnchorAsync](/dotnet/api/microsoft.azure.spatialanch
302302
```
303303

304304
### Delete anchor without locating
305-
//REWORD THIS
306-
307-
one can use the ``GetAnchorPropertiesAsync`` API which takes an anchorId GUID as input to get a CloudSpatialAnchor object, and then pass that to DeleteAnchorAsync to delete it. I just quickly prototyped this in a unit test and was able to delete an anchor without locating it.
308-
305+
If you are unable to locate an anchor but would still like to delete it you can use the ``GetAnchorPropertiesAsync`` API which takes an anchorId as input to get the ``CloudSpatialAnchor`` object. You can then pass this object into ``DeleteAnchorAsync`` to delete it.
309306
```csharp
310307
var anchor = await cloudSession.GetAnchorPropertiesAsync(@"anchorId");
311308
await this.cloudSession.DeleteAnchorAsync(anchor);

0 commit comments

Comments
 (0)