Share via


AnchorManager.DestroyAnchor(AnchorId, SpongyAnchor) Method

Definition

Platform dependent disposal of local anchors.

protected abstract Microsoft.MixedReality.WorldLocking.Core.SpongyAnchor DestroyAnchor (Microsoft.MixedReality.WorldLocking.Core.AnchorId id, Microsoft.MixedReality.WorldLocking.Core.SpongyAnchor spongyAnchor);
abstract member DestroyAnchor : Microsoft.MixedReality.WorldLocking.Core.AnchorId * Microsoft.MixedReality.WorldLocking.Core.SpongyAnchor -> Microsoft.MixedReality.WorldLocking.Core.SpongyAnchor
Protected MustOverride Function DestroyAnchor (id As AnchorId, spongyAnchor As SpongyAnchor) As SpongyAnchor

Parameters

id
AnchorId

The id of the anchor to destroy.

spongyAnchor
SpongyAnchor

Reference to the anchor to destroy.

Returns

Null

Remarks

The id is used to delete from any stored lists. If the SpongyAnchor hasn't been added to any lists (is still initializing), id can be AnchorId.Invalid.

Applies to