UComboBoxString
#include "Components/ComboBoxString.h" Description
A dropdown widget that displays a list of string options for the user to select one. Backed by an FString array with full Blueprint support for dynamic option management.
Caveats & Gotchas
- • Options added via AddOption() at runtime are not reflected in an open dropdown until RefreshOptions() is called.
- • The Font and ForegroundColor properties can only be set before the widget is constructed (via Init functions in the constructor) — changing them at runtime has no effect.
- • OnGenerateWidgetEvent lets you customize each item row; if unbound, a default STextBlock is created using the Font property.
Example
Populate dropdown at runtime C++
MyComboBox->ClearOptions();
for (const FString& Option : AvailableOptions)
{
MyComboBox->AddOption(Option);
}
MyComboBox->SetSelectedOption(AvailableOptions[0]); See Also
Version History
Introduced in: 4.5
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?