cookie
The cookie texture projected by the light.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
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.