fog
Is fog enabled?
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static bool fog { get; set; }
Remarks
using UnityEngine;using System.Collections;public class ExampleClass : MonoBehaviour{ void Example() { // Enable fog RenderSettings.fog = true; }}
Additional Resources: RenderSettings.fogMode.