是否启用了雾效?
using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { void Example() { // Enable fog RenderSettings.fog = true; } }
See Also: RenderSettings.fogMode.