苹果文档:Stored Entities
我的另一个问题:RealityKit – Stored Entities & Load the Scene Aynchronously from the URL
我的函数结果返回a (Entity & HasAnchoring)
我的问题is...How以显示AnchorEntity。(self.arView.scene.addAnchor??)
我是新的here.Thanks
发布于 2020-08-25 17:00:47
加载AnchorEntity后,可以将其添加到场景中,如下所示:
arView.scene.addAnchor(anchor)应该就是这样了。例如,如果在RealityComposer中创建项目时设置了水平面锚定,那么一旦检测到水平面,它就会放置AnchorEntity
iOS 13.5到13.6.1中存在错误。该问题已在iOS 14测试版中修复。解决方法是改用.rcproject文件格式。
if let anchor = try? Entity.loadAnchor(named: "AR") {
arView.scene.addAnchor(anchor)
}

https://stackoverflow.com/questions/63570558
复制相似问题