# mode

> Controls how the gradient colors are interpolated.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public GradientMode mode { get; set; }
```

### Remarks

The default interpolation mode is [GradientMode.Blend](/engine/6000.5/script-reference/unityengine/gradientmode/blend.md). Note that [GradientMode.PerceptualBlend](/engine/6000.5/script-reference/unityengine/gradientmode/perceptualblend.md) can often result in a more natural looking color blend, especially between very different colors. It is slightly more expensive to calculate than the default Blend mode.

Additional Resources: [GradientMode](/engine/6000.5/script-reference/unityengine/gradientmode.md), [Gradient.Evaluate](/engine/6000.5/script-reference/unityengine/gradient/evaluate.md).
