Manual     Reference     Scripting  
  
Scripting > Runtime Classes > RenderSettings Switch to Component   
  • Menu
  • Overview
  • Runtime Classes
  • Attributes
  • Enumerations
  • Editor Classes
  • Attributes
  • Enumerations
  • History
  • Index
  • RenderSettings
  • All Members
  • Class Variables
  • ambientLight
  • flareStrength
  • fog
  • fogColor
  • fogDensity
  • fogEndDistance
  • fogMode
  • fogStartDistance
  • haloStrength
  • skybox

RenderSettings.fogColor  

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;

See Also: Render Settings manager