2016-09-21 27 views
1

我有幾個SCNText節點以下,說明如下:的iOS SceneKit:TextNode相機

let newText = SCNText(string: "", extrusionDepth:0.1) 
    newText.alignmentMode = kCAAlignmentCenter 
    newText.font = UIFont (name: "Arial", size: 3) 
    textNode = SCNNode(geometry: newText) 
    self.addChildNode(textNode) 

如何使這樣文本總是看着鏡頭?

回答

1

textNode.constraints = [SCNBillboardConstraint()]