# GetShadowCasterBounds(int, out Bounds)

> Returns the bounding box that encapsulates the visible shadow casters. Can be used to, for instance, dynamically adjust cascade ranges.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Rendering](/engine/6000.6/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

## GetShadowCasterBounds(int, Bounds)

```csharp
public bool GetShadowCasterBounds(int lightIndex, out Bounds outBounds)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the shadow-casting light.**** (\[Bounds]\(/engine/6000.6/script-reference/unityengine/bounds)): The bounds to be computed.

### Returns

| Type                                                          | Description                                                                |
| ------------------------------------------------------------- | -------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the light affects at least one shadow casting object in the Scene. |
