# fogColor

> The color of the fog.

## Definition

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

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

### Examples

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

public class ExampleClass : MonoBehaviour
{
    void Example()
    {
        // Set the fog color to be blue
        RenderSettings.fogColor = Color.blue;

        // And enable fog
        RenderSettings.fog = true;
    }
}
```
