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.ambientLight

Switch to Manual
public static var ambientLight: Color;

Description

Flat ambient lighting color.

Flat ambient lighting mode uses color. It has the same value as ambientSkyColor.

// Make the ambient lighting red
RenderSettings.ambientLight = Color.red;