The renderer function in SCNSceneRendererDelegate is only called by input, not automatically

It is unclear to me how the whole thing has to be implemented in SwiftUI.

Currently:
After an input (for example moving the camera) the renderer function is called correctly.

Goal:
The renderer function should also be called without needing input.

Setup:
Code Block
struct ContentView: View {
  @ObservedObject var gameData : GameViewModel
   
  var body: some View {
    SceneView(
      scene: gameData.scene,
      pointOfView: gameData.camera,
      options: [
        .allowsCameraControl
      ],
      delegate: gameData
    )
  }
}

Code Block
class GameViewModel: NSObject, ObservableObject { ... }

Code Block
extension GameViewModel: SCNSceneRendererDelegate {
  func renderer(_ renderer: SCNSceneRenderer, updateAtTime time: TimeInterval) { ... }
}

Answered by joshschaerer in 664529022
Got it. There is a .rendersContinuously option which one can add to the SceneView.
Accepted Answer
Got it. There is a .rendersContinuously option which one can add to the SceneView.
The renderer function in SCNSceneRendererDelegate is only called by input, not automatically
 
 
Q