Contents

PerspectiveCamera

A virtual camera that establishes the rendering perspective.

Declaration

@MainActor @preconcurrency class PerspectiveCamera

Overview

During an AR session, RealityKit automatically uses the device’s camera to define the perspective from which to render the scene. When rendering a scene outside of an AR session (with the view’s cameraMode property set to ARView.CameraMode.nonAR), RealityKit uses a PerspectiveCamera instead. You can add a perspective camera anywhere in your scene to control the point of view. If you don’t explicitly provide one, RealityKit creates a default camera for you.

Topics

Creating a camera

See Also

Cameras