Navigation
API > API/Runtime > API/Runtime/UMG
The combobox allows you to display a list of options to the user in a dropdown menu for them to select one.
| Name | UComboBox |
| Type | class |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/ComboBox.h |
| Include Path | #include "Components/ComboBox.h" |
Syntax
UCLASS (Experimental, Meta=(DisplayName="ComboBox (Object)"), MinimalAPI)
class UComboBox : public UWidget
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UVisual → UWidget → UComboBox
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UComboBox
(
const FObjectInitializer& ObjectInitializer |
Components/ComboBox.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsFocusable | bool | Components/ComboBox.h |
|
|
| Items | TArray< TObjectPtr< UObject > > | The list of items to be displayed on the combobox. | Components/ComboBox.h |
|
| OnGenerateWidgetEvent | FGenerateWidgetForObject | Called when the widget is needed for the item. | Components/ComboBox.h |
|
| ScrollBarStyle | FScrollBarStyle | Components/ComboBox.h |
|
Functions
Public
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FText GetPaletteCategory() |
Gets the palette category of the widget | Components/ComboBox.h |
Overridden from UVisual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ReleaseSlateResources
(
bool bReleaseChildren |
Components/ComboBox.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedRef< SWidget > HandleGenerateWidget
(
UObject* Item |
Components/ComboBox.h |
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TSharedRef< SWidget > RebuildWidget() |
Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. | Components/ComboBox.h |