Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


directLightQuality

The number of rays used for lights with an area. Allows for accurate soft shadowing.
Read time 1 minuteLast updated 11 days ago

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public int directLightQuality { get; set; }

Remarks

This is the maximum number of rays to trace to any light with an area. Larger lights will require more rays to produce a noise-free output. The default value works with the majority of Scene setups, but you should increase this value if you observe noise. It can have a significant impact on performance, and for Scenes with lots of area lights, halving this value halves the baking time.