Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


mainLightIndex

Configures what light should be used as main light.
Read time 1 minuteLast updated 7 days ago

Definition

public int mainLightIndex { get; set; }

Remarks

If not set, main light will be the visible brighest directional light. This is used to perform per-object light culling for the main light.