【发布时间】:2018-12-09 10:45:56
【问题描述】:
我正在尝试在 arkit 中显示我的 uiview。但我不知道如何在 ARSceneView 中显示 uiview。
我试过了,但它只是崩溃了。
let planeNode = SCNNode(geometry: SCNPlane(width: referenceImage.physicalSize.width, height: referenceImage.physicalSize.height))
planeNode.geometry?.firstMaterial?.isDoubleSided = true
planeNode.geometry?.firstMaterial?.diffuse.contents = self.pieChartsView
node.addChildNode(planeNode)
我应该怎么做才能在 arkit 中显示我的 uiview?
【问题讨论】:
-
饼图视图的代码在哪里? :)
-
只是uiview
-
究竟是什么崩溃?