기술 자료

Unity Engine

Unity Engine

cookie

The cookie texture projected by the light.
읽는 시간 1분최근 업데이트: 한 달 전

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.