summaryrefslogtreecommitdiff
path: root/UnityEngine.PostProcessing/PostProcessingModel.cs
blob: 986b42b12c6a0cf66209e4e380b64b11642f7ee5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;

namespace UnityEngine.PostProcessing;

[Serializable]
public abstract class PostProcessingModel
{
	[SerializeField]
	[GetSet("enabled")]
	private bool m_Enabled;

	public bool enabled
	{
		get
		{
			return m_Enabled;
		}
		set
		{
			m_Enabled = value;
			if (value)
			{
				OnValidate();
			}
		}
	}

	public abstract void Reset();

	public virtual void OnValidate()
	{
	}
}