will now show context menu below button (similar to how dropdown works)

This commit is contained in:
Whyser
2021-04-30 16:41:33 +02:00
parent 58a5629cf1
commit 2b5850183e
2 changed files with 18 additions and 4 deletions

View File

@ -35,7 +35,7 @@ public static class SerializeReferenceInspectorButton
var className = string.IsNullOrEmpty(names.ClassName) ? "Null (Assign)" : names.ClassName;
var assemblyName = names.AssemblyName;
if (GUI.Button(buttonPosition, new GUIContent(className, className + " ( "+ assemblyName +" )" )))
property.ShowContextMenuForManagedReference(filters);
property.ShowContextMenuForManagedReference(buttonPosition, filters);
GUI.backgroundColor = storedColor;
EditorGUI.indentLevel = storedIndent;