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.

27 lines
520 B

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