---
title: PerspectiveCamera
framework: realitykit
role: symbol
role_heading: Class
path: realitykit/perspectivecamera
---

# PerspectiveCamera

A virtual camera that establishes the rendering perspective.

## Declaration

```swift
@MainActor @preconcurrency class PerspectiveCamera
```

## Overview

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

- [init()](realitykit/perspectivecamera/init().md)

## Relationships

### Inherits From

- [Entity](realitykit/entity.md)

### Conforms To

- [CoordinateSpace3D](spatial/coordinatespace3d.md)
- [CoordinateSpace3DFloat](spatial/coordinatespace3dfloat.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [Equatable](swift/equatable.md)
- [EventSource](realitykit/eventsource.md)
- [HasHierarchy](realitykit/hashierarchy.md)
- [HasPerspectiveCamera](realitykit/hasperspectivecamera.md)
- [HasSynchronization](realitykit/hassynchronization.md)
- [HasTransform](realitykit/hastransform.md)
- [Hashable](swift/hashable.md)
- [Identifiable](swift/identifiable.md)
- [Observable](observation/observable.md)
- [RealityCoordinateSpace](realitykit/realitycoordinatespace.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Cameras

- [PerspectiveCameraComponent](realitykit/perspectivecameracomponent.md)
- [OrthographicCameraComponent](realitykit/orthographiccameracomponent.md)
- [CameraFieldOfViewOrientation](realitykit/camerafieldofvieworientation.md)
- [ProjectiveTransformCameraComponent](realitykit/projectivetransformcameracomponent.md)
