# SpotLightBoxShape

> Use this Struct to help initialize a LightDataGI structure as a box-shaped spot light.

## Definition

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

```csharp
public struct SpotLightBoxShape
```

## Fields

| Value                                                                                                                           | Description                                                                                                        |
| ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| [color](/engine/6000.5/script-reference/unityengine/experimental/globalillumination/spotlightboxshape/color.md)                 | The direct light color.                                                                                            |
| [entityId](/engine/6000.5/script-reference/unityengine/experimental/globalillumination/spotlightboxshape/entityid.md)           | The light's entityId.                                                                                              |
| [height](/engine/6000.5/script-reference/unityengine/experimental/globalillumination/spotlightboxshape/height.md)               | The height of the box light.                                                                                       |
| [indirectColor](/engine/6000.5/script-reference/unityengine/experimental/globalillumination/spotlightboxshape/indirectcolor.md) | The indirect light color.                                                                                          |
| [mode](/engine/6000.5/script-reference/unityengine/experimental/globalillumination/spotlightboxshape/mode.md)                   | The lightmode.                                                                                                     |
| [orientation](/engine/6000.5/script-reference/unityengine/experimental/globalillumination/spotlightboxshape/orientation.md)     | The light's orientation.                                                                                           |
| [position](/engine/6000.5/script-reference/unityengine/experimental/globalillumination/spotlightboxshape/position.md)           | The light's position.                                                                                              |
| [range](/engine/6000.5/script-reference/unityengine/experimental/globalillumination/spotlightboxshape/range.md)                 | The light's range.                                                                                                 |
| [shadow](/engine/6000.5/script-reference/unityengine/experimental/globalillumination/spotlightboxshape/shadow.md)               | Specifies whether the light casts shadows or not. This is true if the light does cast shadows and false otherwise. |
| [width](/engine/6000.5/script-reference/unityengine/experimental/globalillumination/spotlightboxshape/width.md)                 | The width of the box light.                                                                                        |
