One Logo Pool Ball
RealityKit · IOS API REFERENCE

ARView.Environment.Background

struct · iOS 13.0+ · SDK 27.1

struct Background

Content that appears as the background of the scene.

Members (3)

static · iOS 13.0+

cameraFeed

TypeScript
static cameraFeed(exposureCompensation?: number): Promise<ARView_Environment_Background>
Swift declaration
static func cameraFeed(exposureCompensation: Float = 0.0) -> ARView.Environment.Background

Use the camera feed as a background. - Parameters: - exposureCompensation: The exposure compensation used on the camera feed to lighten or darken it.

static · iOS 13.0+

color

TypeScript
static color(color: _UIKit_UIColor): Promise<ARView_Environment_Background>
Swift declaration
static func color(_ color: ARView.Environment.Color) -> ARView.Environment.Background

Use a solid color as a background. - Parameters: - color: The color to use for the background.

static · iOS 13.0+

skybox

TypeScript
static skybox(resource: _RealityFoundation_EnvironmentResource): Promise<ARView_Environment_Background>
Swift declaration
static func skybox(_ resource: EnvironmentResource) -> ARView.Environment.Background

Use a skybox environment resource as a background. - Parameters: - resource: The environment resource to use for the skybox.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityKit types →