文档

Unity Engine


User Manual

Script Reference

Unity Engine


fogColor

The color of the fog.
阅读时间1 分钟最后更新于 22 天前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static Color fogColor { get; set; }

Examples

using UnityEngine;using System.Collections;public class ExampleClass : MonoBehaviour{ void Example() { // Set the fog color to be blue RenderSettings.fogColor = Color.blue; // And enable fog RenderSettings.fog = true; }}