Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

LightContributor class

Component that defines a light contributor in the 2D Radiance Cascades lighting system. It represents both lights and occluders/shadow casters.

public class LightContributor : MonoBehaviour

Public Members

namedescription
AnalyticalLightSettings { get; }Settings specific to analytical lights (Circle, Line, and Freeform types). Has no effect on other light types.
Color { get; set; }The color of the light emitted by this contributor.
Intensity { get; set; }The brightness multiplier for this light source.
LightType { get; set; }The type of light source this contributor represents.
SpriteLightSettings { get; }Settings specific to sprite-based lights. Has no effect on other light types.
SetDirty()Marks this light contributor as dirty, indicating that its state has been changed. Make sure to call this after modifying AnalyticalLightSettings or SpriteLightSettings from the code directly.

See Also