Version: 2019.2
public static bool fog ;

Description

Is fog enabled?

using UnityEngine;
using System.Collections;

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