ComboBox for a string variable

Hi!

If I use an enum variable with EditAnywhere, the value can be set in a combobox in the editor.

Is there a way to create something like that for a string? I would like to set the possible values for the combobox runtime, and use the combobox to initialize the string.

(I want to upload the combobox with the bone names from a model).

Is it possible?

Thanks,

Elathan

You could keep using the enum property (so you get the dropdown menu) but then internally cast the enum property to a string whenever you need it.

But i can’t hardcode the enum names. It should work on different assets with different skeletons, so with different bone names :confused:

Thanks, I’ll check it out :slight_smile:

Oh, sorry. I thought there might be an internal list of bone names somewhere, but you’re right: the sockets just use names.