UComboBoxString wont add FStrings...

Hello!

//header
UPROPERTY(meta = (BindWidget))
UComboBoxString* cboxOptions {nullptr};


//source
cboxOptions->ClearOptions();
cboxOptions->AddOption(FString("Hello!!"));
cboxOptions->AddOption(FString("World!"));

but when run the game, combo box shows no options…

then, i tried to put my options manually directly into the ComboBox widget from the UMG editor default option array… but still there is no option in game…

finally, added the default item for one of my two options, for instance “World!” … then ran the game, and ComboBox successfuly shows “World!” option, but there is no “Hello!” option added…

here is an explanation with a video:

any help will be apreciated…

Hey 1xu7,
In that case I would try to use a C++ debugger (I use the Visual Studio debugger), add some breakpoints and check why the options are not added in the combobox in the engine code.

1 Like

Hello!.. greetings…
thanks for your comment… the weird part is that i was tried without cpp too, directly from Details Panel of my UComboBox… but the result is the same…