mirror of
https://github.com/maxartz15/UnitySerializedReferenceUI.git
synced 2024-11-21 23:25:36 +01:00
use EditorGUI.DropdownButton
This commit is contained in:
parent
acec8003c1
commit
37a4cdb1e1
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user