How to make a Drop Down Menu Based on Enum

Hey I am Seeking of Making a RTS (BTW Now have a Functioning Base) but I am Right Now Learning how to make the Menu for the Game Lobby Were Maps and other things can be Selected. Like in this Old Game Menu from a game I loved when I was a kid:

But I am trying to get the Combo Box to interact with the Enum in the Game Mode (For I set up the Game Mode to Set Up the Player Faction and Team.) I was wondering how to approach this for I am wondering is there a way for the Drop Down menu just to be the Enum instead of Casting to the Game Mode. Or is Casting to the Game Mode Correct? I am still very new to this if anyone knows any tutorials I would be grateful. Thank you. Also Here is what I did Code Wise for the Menu:

Bump

What I have usually used for is make enum becomes array and add indexs

1 Like

Why doesn’t Combo Box use enumeration from the get-go?! :person_shrugging:


You can do it like this, no need for an array unless you want more control over the items inside, ofc:

You can loop over any enumerator.

1 Like

Hi @Everynone in 5.1 for a Editor Utility Widget I had the same issue, I used the code in your image and it worked!..then stopped working and I cannot figure out what to do…I tried recreating from scratch but the combo box just doesn’t populate with the enum info,any Ideas what I could do to resolve the issue?

1 Like