<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/HasPerspectiveCamera",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation20HasPerspectiveCameraP"
  },
  "title" : "HasPerspectiveCamera"
}
-->

# HasPerspectiveCamera

An interface that enables you to configure a virtual camera that you can use
to define the rendering perspective when you’re not in an AR session.

```
@MainActor @preconcurrency protocol HasPerspectiveCamera : HasTransform
```

## Topics

### Getting the camera

[`var camera: PerspectiveCameraComponent`](/documentation/RealityKit/HasPerspectiveCamera/camera)

A camera component for the perspective camera entity.

## Relationships

### Inherits From

[`HasTransform`](/documentation/RealityKit/HasTransform)

### Conforming Types

[`PerspectiveCamera`](/documentation/RealityKit/PerspectiveCamera)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)