文档

Unity Engine

Unity Engine

fogColor

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

Definition

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; }}