Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

RenderSettings.fogColor

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;