# BoxShadow

> Script interface for VisualElement box-shadow style property IStyle.boxShadow.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule
* **Implements:** [IEquatable\<BoxShadow>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct BoxShadow : IEquatable<BoxShadow>
```

## Remarks

The default value draws no shadow and is equivalent to the USS keyword `none`.

## Fields

| Value                                                                                            | Description                                                                                             |
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------- |
| [blurRadius](/engine/6000.7/script-reference/unityengine/uielements/boxshadow/blurradius.md)     | The blur radius of the shadow, in pixels. Negative values are not allowed.                              |
| [color](/engine/6000.7/script-reference/unityengine/uielements/boxshadow/color.md)               | The color of the shadow.                                                                                |
| [inset](/engine/6000.7/script-reference/unityengine/uielements/boxshadow/inset.md)               | When true, the shadow is drawn inside the element's border instead of outside of it.                    |
| [offset](/engine/6000.7/script-reference/unityengine/uielements/boxshadow/offset.md)             | The offset of the shadow, in pixels. Positive values move the shadow right and down.                    |
| [spreadRadius](/engine/6000.7/script-reference/unityengine/uielements/boxshadow/spreadradius.md) | The spread radius of the shadow, in pixels. Positive values grow the shadow, negative values shrink it. |
