# gradient

> The color gradient to display as a background, mutually exclusive with the asset slots. Setting an empty gradient (see BackgroundGradient.IsEmpty ) clears the slot without disturbing any assigned asset.

## Definition

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

```csharp
public BackgroundGradient gradient { get; set; }
```
