# color

> Sets the Color of the gizmos that are drawn next.

## Definition

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

```csharp
public static Color color { get; set; }
```

### Remarks

You can apply any color to gizmos. You can make a gizmo transparent by setting the alpha component of [Color](/engine/6000.0/script-reference/unityengine/color.md) to a value lower than 1. The following example shows how to create a red gizmo.

### Examples

```csharp
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour
{
    void OnDrawGizmosSelected()
    {
        // Draws a 5 unit long red line in front of the object
        Gizmos.color = Color.red;
        Vector3 direction = transform.TransformDirection(Vector3.forward) * 5;
        Gizmos.DrawRay(transform.position, direction);
    }
}
```
