chenxin
2020-10-26 6f16dfb8bcebe67aeb95ded0d8b644af4932e690
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using UnityEngine.PostProcessing;
 
namespace UnityEditor.PostProcessing
{
    [PostProcessingModelEditor(typeof(DitheringModel))]
    public class DitheringModelEditor : PostProcessingModelEditor
    {
        public override void OnInspectorGUI()
        {
            if (profile.grain.enabled && target.enabled)
                EditorGUILayout.HelpBox("Grain is enabled, you probably don't need dithering !", MessageType.Warning);
            else
                EditorGUILayout.HelpBox("Nothing to configure !", MessageType.Info);
        }
    }
}