我有一些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)
如何使文字始终看着相机?
答案 0 :(得分:2)
textNode.constraints = [SCNBillboardConstraint()]