---
title: boxShadow
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/uielements/istyle/boxshadow
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/uielements/istyle/boxshadow.md
last_updated: 2026-10-21
generated_at: 2026-11-04T00:29:36.696Z
locale: en-us
---

# boxShadow

> Shadow cast by the element's box. Accepts horizontal and vertical offsets, an optional blur radius, an optional spread radius, an optional color, and the optional inset keyword to draw the shadow inside the border.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements](/engine/7000.0/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
StyleBoxShadow boxShadow { get; set; }
```
