Skip to content

Commit

Permalink
Fix errors on Unity2019.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuniwak committed Nov 8, 2023
1 parent 81d1ae0 commit cd0170e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Editor/UI/Agents/UGUIMonkeyAgentEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ private void Initialize()
{
drawHeaderCallback = rect => EditorGUI.LabelField(rect, s_randomStringParams),
elementHeightCallback = _ => s_elementHeight,
drawElementCallback = (rect, index, _, _) =>
// XXX: Discarding parameters cannot be used on Unity 2019.x .
// ReSharper disable UnusedParameter.Local
drawElementCallback = (rect, index, isActive, isFocused) =>
// ReSharper enable UnusedParameter.Local
{
var elemProp = _randomStringParametersMapProp.GetArrayElementAtIndex(index);
var rect1 = new Rect(rect) { y = rect.y + Padding, height = EditorGUIUtility.singleLineHeight };
Expand Down

0 comments on commit cd0170e

Please sign in to comment.