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.

16 lines
554 B

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