【问题标题】:iOS SceneKit: TextNode following the cameraiOS SceneKit:跟随相机的TextNode
【发布时间】:2017-01-29 11:34:33
【问题描述】:

我有几个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)

如何让文字一直看着镜头?

【问题讨论】:

    标签: ios swift scenekit


    【解决方案1】:

    textNode.constraints = [SCNBillboardConstraint()]

    【讨论】:

      猜你喜欢
      • 2017-08-28
      • 2016-02-24
      • 2017-09-12
      • 2018-01-08
      • 2021-12-08
      • 1970-01-01
      • 2018-12-29
      • 2017-01-01
      • 2017-08-13
      相关资源
      最近更新 更多