Skip to content

Commit 8390e75

Browse files
committed
Bug fix on method selector drop down display
1 parent 11f586c commit 8390e75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Editor/UInspectorPlus/ComponentMethodDrawer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ private void DrawComponent() {
406406
if (OnClose != null)
407407
EditorGUILayout.BeginHorizontal();
408408
EditorGUILayout.PrefixLabel(mode.ToString());
409-
if (GUILayout.Button(selectedMethodIndex < 0 ? GUIContent.none : methodNames[selectedMethodIndex].content, EditorStyles.popup))
409+
if (GUILayout.Button(selectedMethodIndex < 0 ? GUIContent.none : methodNames[selectedMethodIndex + 1].content, EditorStyles.popup))
410410
ShowSearchPopup();
411411
if (OnClose != null) {
412412
if (GUILayout.Button(EditorGUIUtility.IconContent("Toolbar Minus"), EditorStyles.miniLabel, GUILayout.ExpandWidth(false)))

0 commit comments

Comments
 (0)