# GradientType

> Specifies the type of gradient to use for color interpolation.

## Definition

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

```csharp
public enum GradientType
```

## Remarks

[GradientType.Linear](/engine/6000.6/script-reference/unityengine/uielements/gradienttype/linear.md) creates a gradient that transitions colors along a straight line. [GradientType.Radial](/engine/6000.6/script-reference/unityengine/uielements/gradienttype/radial.md) creates a gradient that radiates colors outward from a central point.

## Fields

| Value                                                                                   | Description                                                   |
| --------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
| [Linear](/engine/6000.6/script-reference/unityengine/uielements/gradienttype/linear.md) | A gradient that transitions colors along a straight line.     |
| [Radial](/engine/6000.6/script-reference/unityengine/uielements/gradienttype/radial.md) | A gradient that radiates colors outward from a central point. |
