FiE-Game/Assets/PostProcessing/Runtime/PostProcessingModel.cs

28 lines
520 B
C#
Raw Normal View History

2023-07-24 21:52:50 +02:00
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()
{}
}
}