# pixelLightCount

> The maximum number of pixel lights that should affect any object.

## Definition

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

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

### Remarks

If there are more lights illuminating an object, the dimmest ones will be rendered as vertex lights.

Use this from scripting if you want to have finer control than offered by quality settings levels.

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        // Use at most one pixel light for every object
        QualitySettings.pixelLightCount = 1;
    }
}
```

Additional Resources: [Quality Settings](/engine/6000.7/manual/unity-editor/editor-settings-reference/comp-manager-group/class-quality-settings.md).
