# environmentSampleCount

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

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

> **Warning:**
>
> **Deprecated.** LightmapEditorSettings.environmentSampleCount is obsolete, use LightingSettings.environmentSampleCount instead.

```csharp
public static int environmentSampleCount { get; set; }
```
