# colorKeys

> All color keys defined in the gradient.

## Definition

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

```csharp
public GradientColorKey[] colorKeys { get; set; }
```

### Remarks

Note that the color keys will be automatically sorted by time value and that it is ensured to always have a minimum of 2 color keys.
