From 175011211ec387c54c2a1b51e8bd2ea1b3751e2c Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Wed, 7 Nov 2018 08:41:01 +0900 Subject: [PATCH] fix #139; Compile error in 2018.3 --- .../UIExtensions/UIEffect/Scripts/Editor/UIEffectEditor.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/Coffee/UIExtensions/UIEffect/Scripts/Editor/UIEffectEditor.cs b/Assets/Coffee/UIExtensions/UIEffect/Scripts/Editor/UIEffectEditor.cs index ae3938a..ae673f5 100644 --- a/Assets/Coffee/UIExtensions/UIEffect/Scripts/Editor/UIEffectEditor.cs +++ b/Assets/Coffee/UIExtensions/UIEffect/Scripts/Editor/UIEffectEditor.cs @@ -62,7 +62,11 @@ namespace Coffee.UIExtensions.Editors EditorGUI.BeginChangeCheck (); EditorGUI.showMixedValue = spColor.hasMultipleDifferentValues; +#if UNITY_2018_1_OR_NEWER + spColor.colorValue = EditorGUILayout.ColorField (contentEffectColor, spColor.colorValue, true, false, false); +#else spColor.colorValue = EditorGUILayout.ColorField (contentEffectColor, spColor.colorValue, true, false, false, null); +#endif if (EditorGUI.EndChangeCheck ()) { spColor.serializedObject.ApplyModifiedProperties (); }