Skip to content

Commit

Permalink
fix #139; Compile error in 2018.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Nov 7, 2018
1 parent 5ff0de7 commit 1750112
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ public static void DrawEffectProperties(SerializedObject serializedObject)

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 ();
}
Expand Down

0 comments on commit 1750112

Please sign in to comment.