---
title: automatic
framework: realitykit
role: symbol
role_heading: Type Property
path: realitykit/directionallightcomponent/shadow/cascades-swift.struct/automatic
---

# automatic

Allow the engine to determine the optimal number of shadow cascades to use – depending on the scene and camera configuration in any given frame.

## Declaration

```swift
static var automatic: DirectionalLightComponent.Shadow.Cascades { get }
```
