# BackgroundGradientSize

> Sizing rule of a radial gradient, mirroring the CSS radial-gradient extent keywords.

## Definition

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

```csharp
public enum BackgroundGradientSize
```

## Fields

| Value                                                                                                             | Description                                                                      |
| ----------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| [ClosestCorner](/engine/6000.7/script-reference/unityengine/uielements/backgroundgradientsize/closestcorner.md)   | Reach the corner of the element closest to the gradient center.                  |
| [ClosestSide](/engine/6000.7/script-reference/unityengine/uielements/backgroundgradientsize/closestside.md)       | Reach the side of the element closest to the gradient center.                    |
| [FarthestCorner](/engine/6000.7/script-reference/unityengine/uielements/backgroundgradientsize/farthestcorner.md) | Reach the corner of the element farthest from the gradient center (CSS default). |
| [FarthestSide](/engine/6000.7/script-reference/unityengine/uielements/backgroundgradientsize/farthestside.md)     | Reach the side of the element farthest from the gradient center.                 |
