Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

RenderSettings.fog

public static bool fog;

Description

Is fog enabled?

using UnityEngine;
using System.Collections;

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

Did you find this page useful? Please give it a rating: