How to use EnumPopup

Sorry, I'm having a brainfreeze. Would someone be so kind as to post the correct syntax to use for EnumPopup?

Thanks - Elliot B.

It should just be:

selected = (YourEnum)EditorGUI.EnumPopup(rectForPopupButton, selected);


selected = (YourEnum)EditorGUILayout.EnumPopup(selected);

if you're just using the simplest overloads, where selected is of type YourEnum, and declared as a member variable