From 37a4cdb1e199d0639107a08605223517fe735df0 Mon Sep 17 00:00:00 2001 From: max Date: Wed, 28 Dec 2022 14:12:18 +0100 Subject: [PATCH] use EditorGUI.DropdownButton --- Editor/DefaultUI/SerializeReferenceInspectorButton.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Editor/DefaultUI/SerializeReferenceInspectorButton.cs b/Editor/DefaultUI/SerializeReferenceInspectorButton.cs index c3c8468..611c2de 100644 --- a/Editor/DefaultUI/SerializeReferenceInspectorButton.cs +++ b/Editor/DefaultUI/SerializeReferenceInspectorButton.cs @@ -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); }