# implicit operator Vector4

> Colors can be implicitly converted to and from Vector4.

## Definition

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

## implicit operator Vector4(Vector)

Colors can be implicitly converted to and from [Vector4](/engine/6000.0/script-reference/unityengine/vector4.md).

```csharp
public static implicit operator Vector4(Color c)
```

### Parameters

**** (\[Color]\(/engine/6000.0/script-reference/unityengine/color)):&#x20;

### Returns

| Type                                                              | Description |
| ----------------------------------------------------------------- | ----------- |
| [Vector4](/engine/6000.0/script-reference/unityengine/vector4.md) |             |

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        Vector4 newV4 = new Color(0.3f, 0.4f, 0.6f);
    }
}
```

## implicit operator Color(Colo)

Colors can be implicitly converted to and from [Vector4](/engine/6000.0/script-reference/unityengine/vector4.md).

```csharp
public static implicit operator Color(Vector4 v)
```

### Parameters

**** (\[Vector4]\(/engine/6000.0/script-reference/unityengine/vector4)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [Color](/engine/6000.0/script-reference/unityengine/color.md) |             |

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        Color newColor = new Vector4(0.3f, 0.4f, 0.6f);
    }
}
```
