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.
29 lines
742 B
29 lines
742 B
using UnityEngine.Rendering.PostProcessing;
|
|
|
|
namespace UnityEditor.Rendering.PostProcessing
|
|
{
|
|
[CustomEditor(typeof(PostProcessProfile))]
|
|
sealed class PostProcessProfileEditor : Editor
|
|
{
|
|
EffectListEditor m_EffectList;
|
|
|
|
void OnEnable()
|
|
{
|
|
m_EffectList = new EffectListEditor(this);
|
|
m_EffectList.Init(target as PostProcessProfile, serializedObject);
|
|
}
|
|
|
|
void OnDisable()
|
|
{
|
|
if (m_EffectList != null)
|
|
m_EffectList.Clear();
|
|
}
|
|
|
|
public override void OnInspectorGUI()
|
|
{
|
|
serializedObject.Update();
|
|
m_EffectList.OnGUI();
|
|
serializedObject.ApplyModifiedProperties();
|
|
}
|
|
}
|
|
}
|