Skip to content

Commit 373df10

Browse files
committed
restored even more API
1 parent 1740639 commit 373df10

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Packages/com.unity.inputsystem/InputSystem/Editor/ControlPicker/InputControlPathEditor.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ public void OnGUI()
9090
EditorGUILayout.EndHorizontal();
9191
}
9292

93-
public void OnGUI(Rect rect, GUIContent label = null, Action modifiedCallback = null)
93+
//TODO: on next major version remove property argument.
94+
public void OnGUI(Rect rect, GUIContent label = null, SerializedProperty property = null, Action modifiedCallback = null)
9495
{
9596
var pathLabel = label ?? m_PathLabel;
9697

Packages/com.unity.inputsystem/InputSystem/Editor/PropertyDrawers/InputControlPathDrawer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten
4444
}
4545

4646
EditorGUI.BeginProperty(position, label, property);
47-
m_Editor.OnGUI(position, label, () => property.serializedObject.ApplyModifiedProperties());
47+
m_Editor.OnGUI(position, label, property: null, modifiedCallback: () => property.serializedObject.ApplyModifiedProperties());
4848
EditorGUI.EndProperty();
4949
}
5050
}

0 commit comments

Comments
 (0)