我有一个包含 car.dae 模型的 scene.scn 文件。这是图像:
我有以下代码来加载场景。
override func viewDidLoad() {
super.viewDidLoad()
// Set the view's delegate
sceneView.delegate = self
// Show statistics such as fps and timing information
sceneView.showsStatistics = true
// Create a new scene
let scene = SCNScene(named: "art.scnassets/scene.scn")!
// Set the scene to the view
sceneView.scene = scene
}
我没有看到现场正在装载的汽车。有任何想法吗?