Module |
|
Header |
/Engine/Source/Editor/PinnedCommandList/Public/IPinnedCommandList.h |
Include |
#include "IPinnedCommandList.h" |
void RegisterCustomWidget
(
FOnGenerateCustomWidget InOnGenerateCustomWidget,
FName InCustomWidgetIdentifier,
TAttribute< FText > InCustomWidgetDisplayName,
FMargin InCustomWidgetPadding,
bool bInShowLabel
)
Register a custom widget. This allows the widget to be dynamically reconstructed according to the persisted commands.
Parameter |
Description |
---|---|
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) |