Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Cookie

A helper structure used to initialize a LightDataGI structure with cookie information.
Read time 1 minuteLast updated 10 days ago

Definition

public struct Cookie

Fields

Value

Description

entityIdThe cookie texture's entityId projected by the light.
scaleThe uniform scale factor for downscaling cookies during lightmapping. Can be used as an optimization when full resolution cookies are not needed for indirect lighting.
sizesThe scale factors controlling how the directional light's cookie is projected into the scene. This parameter should be set to 1 for all other light types.

Static Methods

Method

Description

DefaultsReturns a default initialized cookie helper struct.