【发布时间】:2017-08-18 05:01:39
【问题描述】:
我有一个 SCNText 元素:
print(NodeElement?.geometry?)
// output
`Optional(<SCNText: 0x1c01f6800 'text' | 3 elements | string=At desk extrusionDepth=0.500> )`
但是,当我这样做时:
print(self.editingSCNBodyNode?.geometry?.string)
我得到错误:
Value of type 'SCNGeometry' has no member 'string'
根据 Apple 的documentation,这是可以获取和设置的变量。
【问题讨论】: