unity editor popup menu
xxxxxxxxxx
GenericMenu menu = new GenericMenu();
menu.AddItem(new GUIContent("Function 1"), false, () =>
{
// Do the function 1
});
menu.AddItem(new GUIContent("Function 2"), false, () =>
{
// Do the function 2
});
menu.ShowAsContext();
https://www.sketchoverflow.com/2022/12/how-to-add-a-popup-menu-in-unity-custom-editor-inspector/