文档

Unity Engine

Unity Engine

cookie

The cookie texture projected by the light.
阅读时间1 分钟最后更新于 1 天前

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.