Version: 2017.2
public static bool fog ;

Descripción

Is fog enabled?

using UnityEngine;
using System.Collections;

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

See Also: RenderSettings.fogMode.