UComboBox

The combobox allows you to display a list of options to the user in a dropdown menu for them to select one.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Components/ComboBox.h

Include

#include "Components/ComboBox.h"

Syntax

class UComboBox : public UWidget

Remarks

The combobox allows you to display a list of options to the user in a dropdown menu for them to select one.

Variables

Name Description

Public variable

bool

 

bIsFocusable

Public variable

TArray< UObject...

 

Items

The list of items to be displayed on the combobox.

Protected variable

TSharedPtr< SCo...

 

MyComboBox

Public variable

FGenerateWidget...

 

OnGenerateWidgetEvent

Called when the widget is needed for the item.

Constructors

Name Description

Public function

UComboBox

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Protected function Const

TSharedRef< ...

 

HandleGenerateWidget

(
    UObject* Item
)

Overridden from UWidget

Name Description

Public function Virtual

const FText

 

GetPaletteCategory()

Gets the palette category of the widget

Protected function Virtual

TSharedRef< ...

 

RebuildWidget()

Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed.

Overridden from UVisual

Name Description

Public function Virtual

void

 

ReleaseSlateResources

(
    bool bReleaseChildren
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss