Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

public var cookie: Texture;
public Texture cookie;

Description

The cookie texture projected by the light.

If the cookie is a cube map, the light will become a Point light. Note that cookies are only displayed for pixel lights. See Also: Light component.