You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
640 B

5 years ago
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. [ExecuteInEditMode]
  5. public class FogVolumeLight : MonoBehaviour
  6. {
  7. private void OnEnable()
  8. {
  9. SphereCollider collider = GetComponent<SphereCollider>();
  10. #if UNITY_EDITOR
  11. if (collider != null) { DestroyImmediate(collider); }
  12. #else
  13. if (collider != null) { Destroy(collider); }
  14. #endif
  15. }
  16. public bool IsAddedToNormalLight;
  17. public bool IsPointLight;
  18. public bool Enabled = true;
  19. public Color Color = Color.white;
  20. public float Intensity = 1.0f;
  21. public float Range = 10.0f;
  22. public float Angle = 30.0f;
  23. }