Version: 2021.2
public static Color ambientLight ;

描述

平面环境光照颜色。

平面环境光照模式会使用颜色,其值与 ambientSkyColor 的值相同。

using UnityEngine;

public class Example : MonoBehaviour { void Start() { // Make the ambient lighting red RenderSettings.ambientLight = Color.red; } }

另请参阅:ambientModeLighting Window