---
title: "skybox(_:)"
framework: realitykit
role: symbol
role_heading: Type Method
path: "realitykit/arview/environment-swift.struct/background-swift.struct/skybox(_:)"
---

# skybox(_:)

Use a skybox environment resource as a background.

## Declaration

```swift
static func skybox(_ resource: EnvironmentResource) -> ARView.Environment.Background
```

## Parameters

- `resource`: The environment resource to use for the skybox.

## See Also

### Backgrounds

- [cameraFeed(exposureCompensation:)](realitykit/arview/environment-swift.struct/background-swift.struct/camerafeed(exposurecompensation:).md)
- [color(_:)](realitykit/arview/environment-swift.struct/background-swift.struct/color(_:)-97jik.md)
- [color(_:)](realitykit/arview/environment-swift.struct/background-swift.struct/color(_:)-5hh3f.md)
