# bounces

> This property is now obsolete. Use LightingSettings.maxBounces.

## Definition

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

> **Warning:**
>
> **Deprecated.** Use LightingSettings.maxBounces instead.
>
> **Upgrade to** [LightingSettings.maxBounces](/engine/6000.3/script-reference/unityengine/lightingsettings/maxbounces.md)

```csharp
public int bounces { get; set; }
```
