One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

PerspectiveCamera

class · iOS 13.0+ · SDK 27.1

@MainActor @preconcurrency class PerspectiveCamera

A virtual camera that establishes the rendering perspective. 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 ``ARView/cameraMode-swift.property`` property set to ``ARView/CameraMode-swift.enum/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.

Members (1)

init · iOS 13.0+

init

TypeScript
static init(): Promise<PerspectiveCamera>
Swift declaration
@MainActor @preconcurrency required init()

Creates a perspective camera entity.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →