AnchorManager.DestroyAnchor(AnchorId, SpongyAnchor) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.