Hi,
I have a working SCNSceneView on my screen and what I'm trying to do is to dynamically load on screen a .scn file.
I'm currently performing the following:
I've tried a lot of other iterations where I'm calling load or prepare on a background DispatchQueue but my conclusion is that no matter what I try addChildNode(node) will freeze the screen until it finishes it's operation.
Did you find a solution for this issue ?
I have a working SCNSceneView on my screen and what I'm trying to do is to dynamically load on screen a .scn file.
I'm currently performing the following:
Code Block language if let node = SCNReferenceNode(url: url) { node.load() self.sceneView?.prepare([node], completionHandler: { _ in self?.sceneView?.scene.rootNode.addChildNode(node) print("added child node") }) }
I've tried a lot of other iterations where I'm calling load or prepare on a background DispatchQueue but my conclusion is that no matter what I try addChildNode(node) will freeze the screen until it finishes it's operation.
Did you find a solution for this issue ?