There are some overlay tutorials on the Internet, all using
overlaySKScene at some point.
That is somehow not possible in my project, as (I guess) my view does not use the constructor of SCNView at any point (which overlaySKScene is a part of).
In the ViewController's viewDidLoad, basically only the MainScene is created:
viewDidLoad() {
self.sceneView = MainScene(view: self.view)) }
...which goes here (note: SCNScene instead of SCNView):
class MainScene: SCNScene, SCNPhysicsContactDelegate {...
init(view:UIView) {
scnView = view as! SCNView
super.init()
scnView.scene = self; (...) }
The scene is perfectly created, I would now like to overlay a SKScene. Does anyone know how?