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
16 lines
554 B
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); |
|
} |
|
} |
|
}
|
|
|