# GradientColorKey

> Gradient color key.

## Definition

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

## GradientColorKey(Color, float)

Gradient color key.

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

### Parameters

**** (\[Color]\(/engine/6000.5/script-reference/unityengine/color)): **** (\[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/6000.5/script-reference/unityengine/color)): **** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Time of the key (0 - 1).
