camera property
The scene's primary camera.
A SceneView with no camera, cameraBuilder, or viewsBuilder
renders through this. It resolves to an explicit override (assign any
Camera here) if set, otherwise to the first CameraComponent mounted
in the scene (auto-promotion), otherwise null. When it is null, a
SceneView falls back to a default camera so a scene with no camera set
up still renders.
Assigning a value sets the override; assign null to clear it and revert to auto-promotion. See also CameraComponent.makeActive.
Implementation
Camera? get camera => renderScene.primaryCamera;
Implementation
set camera(Camera? value) => renderScene.cameraOverride = value;