Navigation
API > API/Plugins > API/Plugins/CommonUI > API/Plugins/CommonUI/UCommonTabListWidgetBase
Description
Registers and adds a new tab to the list that corresponds to a given widget instance. If not present in the linked switcher, it will be added.
| Name | RegisterTab |
| Type | function |
| Header File | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/CommonTabListWidgetBase.h |
| Include Path | #include "CommonTabListWidgetBase.h" |
| Source | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Private/CommonTabListWidgetBase.cpp |
UFUNCTION (BlueprintCallable, Category=TabList)
bool RegisterTab
(
FName TabNameID,
TSubclassOf < UCommonButtonBase > ButtonWidgetType,
UWidget * ContentWidget,
const int32 TabIndex
)
True if the new tab registered successfully and there were no name ID conflicts
Parameters
| Name | Remarks |
|---|---|
| TabID | The name ID used to keep track of this tab. Attempts to register a tab under a duplicate ID will fail. |
| ButtonWidgetType | The widget type to create for this tab |
| ContentWidget | The widget to associate with the registered tab |
| TabIndex | Determines where in the tab list to insert the new tab (-1 means tab will be added to end of the list) |