PostProcessingModel.cs 520 B

123456789101112131415161718192021222324252627
  1. using System;
  2. namespace UnityEngine.PostProcessing
  3. {
  4. [Serializable]
  5. public abstract class PostProcessingModel
  6. {
  7. [SerializeField, GetSet("enabled")]
  8. bool m_Enabled;
  9. public bool enabled
  10. {
  11. get { return m_Enabled; }
  12. set
  13. {
  14. m_Enabled = value;
  15. if (value)
  16. OnValidate();
  17. }
  18. }
  19. public abstract void Reset();
  20. public virtual void OnValidate()
  21. {}
  22. }
  23. }