Documentation

Unity Engine

Download Unity

Unity Engine

cookie

The cookie texture projected by the light.
Read time 1 minuteLast updated 3 days ago

Definition

public Texture cookie { get; set; }

Remarks

LightType.Point lights require a cube map texture. If the cookie is a cube map, the light will become a LightType.Point light.
Note that cookies are displayed for pixel ("important") and baked/mixed lights, but not for vertex/SH ("not important") lights.
Additional Resources: Light component.