# Cookie

> A helper structure used to initialize a LightDataGI structure with cookie information.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.Experimental.GlobalIllumination](/engine/6000.3/script-reference/unityengine/experimental/globalillumination.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public struct Cookie
```

## Fields

| Value                                                                                                      | Description                                                                                                                                                             |
| ---------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [entityId](/engine/6000.3/script-reference/unityengine/experimental/globalillumination/cookie/entityid.md) | The cookie texture's entityId projected by the light.                                                                                                                   |
| [scale](/engine/6000.3/script-reference/unityengine/experimental/globalillumination/cookie/scale.md)       | The uniform scale factor for downscaling cookies during lightmapping. Can be used as an optimization when full resolution cookies are not needed for indirect lighting. |
| [sizes](/engine/6000.3/script-reference/unityengine/experimental/globalillumination/cookie/sizes.md)       | The 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                                         |
| ---------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
| [Defaults](/engine/6000.3/script-reference/unityengine/experimental/globalillumination/cookie/defaults.md) | Returns a default initialized cookie helper struct. |
