init
TypeScriptstatic init(): Promise<PerspectiveCamera>Swift declaration@MainActor @preconcurrency required init()Creates a perspective camera entity.
class · iOS 13.0+ · SDK 27.1
@MainActor @preconcurrency class PerspectiveCameraA 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.
static init(): Promise<PerspectiveCamera>Swift declaration@MainActor @preconcurrency required init()Creates a perspective camera entity.
No declarations were skipped in this snapshot.