SCNMaterial: can't find init:mdlMaterial:

懵懂的女人 提交于 2019-12-02 05:38:16

you'll need to import the bridging header to see these methods:

// Objective-C
#import <SceneKit/ModelIO.h>

// Swift
import SceneKit.ModelIO

That said you shouldn't have to use Model I/O. Have you tried the normal material property on SCNMaterial?

Also note that Model I/O was designed as an interexchange format and not all that it can represent is supported by SceneKit. If SceneKit APIs don't expose what you're looking for, there's little to no chance that using an intermediate Model I/O object will help.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!