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)