How to make a dropdown menu in the editor window with UIelements

I can see some tutorials about making buttons, texts, images, boxes but none of the tutorials shows how to make a dropdown menu. Can anyone help me? Thanks in advance!

PopupField, EnumField
but they are all under UnityEditor.UIElements namespace.

you can clone from GitHub - Unity-Technologies/UIElementsExamples: Unity project containing examples to use UIElements in the Editor

ToolbarMenu

E05_Controls

1 Like