【发布时间】:2018-01-21 02:28:05
【问题描述】:
下面是我的代码和相机图像,用于将 2d UIView 加载到 sceneView 中。我已经尝试加载到材料内容中,但让节点多次空白。
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)
【问题讨论】:
标签: ios swift scenekit metal arkit