我无法在XCode 7 beta 3游乐场中加载场景...尽管它使用的是Xcode6.4.是bug还是什么改变了?
ps :SCNScene(名:"ship.dae")返回nil。
在我的资源文件夹中是ship.dae和texture.png (来自SceneKit模板),下面是我的代码:
//: Playground - noun: a place where people can play
import SceneKit
import XCPlayground
var view = SCNView(frame: NSRect(x: 0, y: 0, width: 500, height: 500))
var scene = SCNScene(named: "ship.dae")
view.scene = scene
XCPShowView("view", view: view)发布于 2015-11-01 10:07:49
在Xcode 7中
import XCPlayground
let view = // your view
XCPlaygroundPage.currentPage.liveView = view在Xcode 8中
import PlaygroundSupport
let view = // your view
PlaygroundPage.current.liveView = viewhttps://stackoverflow.com/questions/31504877
复制相似问题