Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

RenderSettings.fogColor

Switch to Manual
public static var fogColor: Color;

Description

The color of the fog.

	// Set the fog color to be blue
	RenderSettings.fogColor = Color.blue;
	// And enable fog
	RenderSettings.fog = true;