AnchorManager.DestroyAnchor(AnchorId, SpongyAnchor) 方法

定义

依赖于平台的本地定位点处置。

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

参数

id
AnchorId

要销毁的定位点的 ID。

spongyAnchor
SpongyAnchor

对要销毁的定位点的引用。

返回

Null

注解

ID 用于从任何存储列表中删除。 如果 SpongyAnchor 尚未添加到任何列表中, (仍在初始化) ,则 id 可以为 AnchorId.Invalid。

适用于