LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

RenderSettings.fogColor

public static Color fogColor;

Description

The color of the fog.

using UnityEngine;
using System.Collections;

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