This works
let scene = SCNScene(named: \"house.dae\")
Is there an equivalent for a node?
let node = SCNNode(geometry: SCNGe
That's what I use in real project:
extension SCNNode {
convenience init(named name: String) {
self.init()
guard let scene = SCNScene(named: name) else {
return
}
for childNode in scene.rootNode.childNodes {
addChildNode(childNode)
}
}
}
After that you can call:
let node = SCNNode(named: "art.scnassets/house.dae")