AnchorManager.LoadAnchors 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
LoadAnchors() |
从持久性存储加载海绵定位点 |
LoadAnchors(IPlugin, AnchorId, Transform, List<AnchorManager.SpongyAnchorWithId>) |
LoadAnchors()
从持久性存储加载海绵定位点
public System.Threading.Tasks.Task LoadAnchors ();
abstract member LoadAnchors : unit -> System.Threading.Tasks.Task
override this.LoadAnchors : unit -> System.Threading.Tasks.Task
Public Function LoadAnchors () As Task
返回
实现
注解
此例程加载的海绵定位点集由以前加载到插件中的冻结定位点定义。
同样,当无法加载海绵定位点时,此例程将从插件中删除其冻结的对应项。
适用于
LoadAnchors(IPlugin, AnchorId, Transform, List<AnchorManager.SpongyAnchorWithId>)
protected virtual System.Threading.Tasks.Task LoadAnchors (Microsoft.MixedReality.WorldLocking.Core.IPlugin plugin, Microsoft.MixedReality.WorldLocking.Core.AnchorId firstId, UnityEngine.Transform parent, System.Collections.Generic.List<Microsoft.MixedReality.WorldLocking.Core.AnchorManager.SpongyAnchorWithId> spongyAnchors);
abstract member LoadAnchors : Microsoft.MixedReality.WorldLocking.Core.IPlugin * Microsoft.MixedReality.WorldLocking.Core.AnchorId * UnityEngine.Transform * System.Collections.Generic.List<Microsoft.MixedReality.WorldLocking.Core.AnchorManager.SpongyAnchorWithId> -> System.Threading.Tasks.Task
override this.LoadAnchors : Microsoft.MixedReality.WorldLocking.Core.IPlugin * Microsoft.MixedReality.WorldLocking.Core.AnchorId * UnityEngine.Transform * System.Collections.Generic.List<Microsoft.MixedReality.WorldLocking.Core.AnchorManager.SpongyAnchorWithId> -> System.Threading.Tasks.Task
Protected Overridable Function LoadAnchors (plugin As IPlugin, firstId As AnchorId, parent As Transform, spongyAnchors As List(Of AnchorManager.SpongyAnchorWithId)) As Task
参数
- plugin
- IPlugin
- firstId
- AnchorId
- parent
- UnityEngine.Transform
- spongyAnchors
- List<AnchorManager.SpongyAnchorWithId>