Navigation
API > API/Editor > API/Editor/PinnedCommandList > API/Editor/PinnedCommandList/IPinnedCommandList
Description
Register a custom widget. This allows the widget to be dynamically reconstructed according to the persisted commands.
| Name | RegisterCustomWidget |
| Type | function |
| Header File | /Engine/Source/Editor/PinnedCommandList/Public/IPinnedCommandList.h |
| Include Path | #include "IPinnedCommandList.h" |
void RegisterCustomWidget
(
FOnGenerateCustomWidget InOnGenerateCustomWidget,
FName InCustomWidgetIdentifier,
TAttribute< FText > InCustomWidgetDisplayName,
FMargin InCustomWidgetPadding,
bool bInShowLabel
)
Parameters
| Name | Remarks |
|---|---|
| InOnGenerateCustomWidget | Delegate used to regenerate the custom widget when created or loaded. |
| InCustomWidgetIdentifier | Unique identifier used to persist the widget. Matched to the parameter when calling AddCustomWidget. |
| InCustomWidgetDisplayName | Text to display next to the custom widget, and to generate tooltips for the widget. |
| InCustomWidgetPadding | Custom padding around the widget. |
| bInShowLabel | Whether to display the label in the pinned widget (it will still be used in the context menus) |