我有几个SCNText节点,描述如下:
let newText = SCNText(string: "", extrusionDepth:0.1)
newText.alignmentMode = kCAAlignmentCenter
newText.font = UIFont (name: "Arial", size: 3)
textNode = SCNNode(geometry: newText)
self.addChildNode(textNode)
如何使文字始终看着相机?
最佳答案
textNode.constraints = [SCNBillboardConstraint()]
关于ios - iOS SceneKit:相机后的TextNode,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/39612797/