IPinnedCommandList::RegisterCustomWidget

Register a custom widget.

Windows
MacOS
Linux

References

Module

PinnedCommandList

Header

/Engine/Source/Editor/PinnedCommandList/Public/IPinnedCommandList.h

Include

#include "IPinnedCommandList.h"

Syntax

void RegisterCustomWidget
(
    FOnGenerateCustomWidget InOnGenerateCustomWidget,
    FName InCustomWidgetIdentifier,
    TAttribute< FText > InCustomWidgetDisplayName,
    FMargin InCustomWidgetPadding,
    bool bInShowLabel
)

Remarks

Register a custom widget. This allows the widget to be dynamically reconstructed according to the persisted commands.

Parameters

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)

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