use EditorGUI.DropdownButton

This commit is contained in:
max 2022-12-28 14:12:18 +01:00
parent acec8003c1
commit 37a4cdb1e1

View File

@ -28,7 +28,7 @@ namespace Textus.SerializeReferenceUI.Editor
string className = isNull ? "Null (Assign)" : ClassName;
string assemblyName = AssemblyName;
if (GUI.Button(buttonPosition, new GUIContent(className, className + " ( " + assemblyName + " )")))
if (EditorGUI.DropdownButton(buttonPosition, new GUIContent(className, className + " ( " + assemblyName + " )"), FocusType.Keyboard))
{
property.ShowContextMenuForManagedReference(buttonPosition, filters);
}