xcode9 / SceneKit - .dae file not loading into SCNScene - returns nil

前端 未结 1 501
滥情空心
滥情空心 2021-01-21 17:14

I\'m trying to load a .dae file into SCNScene, using the following code:

let solutionScene = SCNScene(named: \"art.scnassets/level1.dae\")
print(solutionScene?.r         


        
相关标签:
1条回答
  • 2021-01-21 18:11

    In case somebody runs into a similar newbie problem, the issue gets resolved by adding the .scnassets folder into "Copy Bundle Resources" under Build Phases of the project - cleaning the project might be required in some cases before you rebuild again. This solved my issue.

    0 讨论(0)
提交回复
热议问题