<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ARView/Environment-swift.struct/Background-swift.struct/skybox(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:10RealityKit6ARViewC11EnvironmentV10BackgroundV6skyboxyAG0A10Foundation0D8ResourceCFZ"
  },
  "title" : "skybox(_:)"
}
-->

# skybox(_:)

Use a skybox environment resource as a background.

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

## Parameters

`resource`

The environment resource to use for the skybox.

---

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)