Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


pixelLightCount

The maximum number of pixel lights that should affect any object.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
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.
using UnityEngine;public class Example : MonoBehaviour{ void Start() { // Use at most one pixel light for every object QualitySettings.pixelLightCount = 1; }}
Additional Resources: Quality Settings.