# allowOcclusionWhenDynamic

> Controls if dynamic occlusion culling should be performed for this renderer.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/7000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

> **Warning:**
>
> **Deprecated.** Renderer.allowOcclusionWhenDynamic is deprecated and will be removed in a future release. Consider migrating to GPU Occlusion Culling where your target platform supports it. #from(6000.7)

```csharp
public bool allowOcclusionWhenDynamic { get; set; }
```
