DemoBoxedArea.cs 334 B

12345678910111213141516
  1. using UnityEngine;
  2. using UnityEngine.UI;
  3. namespace VolumetricFogAndMist {
  4. public class DemoBoxedArea : MonoBehaviour {
  5. void Update () {
  6. VolumetricFog fog = VolumetricFog.instance;
  7. if (Input.GetKeyDown (KeyCode.T)) {
  8. fog.enabled = !fog.enabled;
  9. }
  10. }
  11. }
  12. }