【发布时间】:2019-03-14 08:01:39
【问题描述】:
实例方法makeVerticesUnique() 修改了网格的顶点缓冲区,使得多个面不共享顶点。但它在 macOS 10.13 High Sierra 和 iOS 11 中已被弃用:
mdlMesh.makeVerticesUnique() /* deprecated in macOS 10.13 and iOS 11 */
现在开发者必须使用一个新的实例方法:
func makeVerticesUniqueAndReturnError() throws
但它没有记录。 如何使用?
当我使用这个新的实例方法时,Xcode 给了我一个错误:
'throws' may only occur before '->'
【问题讨论】:
标签: swift scenekit augmented-reality arkit scenekit-modelio