Rasagar/Assets/Flooded_Grounds/PostProcessing/Runtime/PostProcessingModel.cs
2024-08-26 23:07:20 +03:00

28 lines
520 B
C#

using System;
namespace UnityEngine.PostProcessing
{
[Serializable]
public abstract class PostProcessingModel
{
[SerializeField, GetSet("enabled")]
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()
{}
}
}