mirror of
https://github.com/maxartz15/UnitySerializedReferenceUI.git
synced 2025-06-27 22:56:11 +02:00
will now show context menu below button (similar to how dropdown works)
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user