0
这里下面我的代码和相机图像加载2d UIView到sceneView。我已经尝试加载到材质内容,但让节点多次空白。有没有其他的方式来显示UIView到ARKit?
let annotationNode = SCNNode()
let planeGeoMetry:SCNPlane = SCNPlane()
planeGeoMetry.firstMaterial?.fillMode = .fill
planeGeoMetry.firstMaterial?.diffuse.contents = view
annotationNode.name = name
annotationNode.geometry = planeGeoMetry
self.sceneView.scene.rootNode.addChildNode(annotationNode)