【发布时间】:2018-09-05 17:26:59
【问题描述】:
为什么这些代码行有效:
let text = NSString(string: "Test")
(node.geometry as! SCNText).string = text
但这些没有:
let text = NSAttributedString(string: "Test")
(node.geometry as! SCNText).string = text
使用属性文本时,SCNText 根本不会显示。有什么想法吗?
谢谢。
【问题讨论】:
标签: ios swift 3d scenekit nsattributedstring