您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
16 行
554 B
16 行
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);
|
|
}
|
|
}
|
|
}
|