# GradientColorKey

> Gradient color key.

## Definition

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

## GradientColorKey(Color, float)

Gradient color key.

```csharp
public GradientColorKey(Color col, float time)
```

### Parameters

**** (\[Color]\(/engine/7000.0/script-reference/unityengine/color)): Color of key.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Time of the key (0 - 1).

## GradientColorKey(Color, float)

Gradient color key.

```csharp
public GradientColorKey(in Color col, float time)
```

### Parameters

**** (\[Color]\(/engine/7000.0/script-reference/unityengine/color)): Color of key.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Time of the key (0 - 1).
