2017-08-12 92 views
0

这里下面我的代码和相机图像加载2d UIView到sceneView。我已经尝试加载到材质内容,但让节点多次空白。有没有其他的方式来显示UIView到ARKit?

enter image description here

 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) 

回答

相关问题