# fog

> Is fog enabled?

## Definition

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

```csharp
public static bool fog { get; set; }
```

### Remarks

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

public class ExampleClass : MonoBehaviour
{
    void Example()
    {
        // Enable fog
        RenderSettings.fog = true;
    }
}
```

Additional Resources: [RenderSettings.fogMode](/engine/6000.3/script-reference/unityengine/rendersettings/fogmode.md).
