기술 자료

Unity Engine

Unity Engine

fogColor

The color of the fog.
읽는 시간 1분최근 업데이트: 한 달 전

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