gpt4 book ai didi

iOS SceneKit : TextNode following the camera

转载 作者:搜寻专家 更新时间:2023-11-01 07:20:05 24 4
gpt4 key购买 nike

我有几个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 SceneKit : TextNode following the camera,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39612797/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com