SCNScene.write() doesn't call the delegate, how to fix it?
0
In SCNScene.write() , the signature allows to specify a delegate which is used to resolve how to save, principally, texture assets: func write(to url: URL, options: [String : Any]? = nil, delegate: SCNSceneExportDelegate?, progressHandler: SCNSceneExportProgressHandler? = nil) -> Bool Documentation here However, when I try to use it, the delegate never gets called, even in situations in which, I think, it should: ... guard let shipText = Bundle.main.url(forResource: "texture", withExtension: "png", subdirectory: "art.scnassets") else { print("Couldn't retrieve texture") return } do { let scene = SCNScene() let boxGeom = SCNBox(width: 0.1, height: 0.1, length: 0.1, chamferRadius: 0) boxGeom.firstMaterial!.diffuse.contents = shipText.path boxGe...