# SetLayerCullingDistance(int, float)

> Set the distance for the culling of a specific layer.

## Definition

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

```csharp
public void SetLayerCullingDistance(int layerIndex, float distance)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)):&#x20;
