Navigation
Unreal Engine C++ API Reference > Developer > WidgetRegistration > FToolElementRegistry
References
Module | WidgetRegistration |
Header | /Engine/Source/Developer/WidgetRegistration/Public/ToolElementRegistry.h |
Include | #include "ToolElementRegistry.h" |
Source | /Engine/Source/Developer/WidgetRegistration/Private/ToolElementRegistry.cpp |
[TSharedRef](API\Runtime\Core\Templates\TSharedRef)< [SWidget](API\Runtime\SlateCore\Widgets\SWidget) > GenerateWidget ( [TSharedRef](API\Runtime\Core\Templates\TSharedRef)< [FToolElementRegistrationKey](API\Developer\WidgetRegistration\FToolElementRegistrationKey) > ToolElementKeySR, [TSharedPtr](API\Runtime\Core\Templates\TSharedPtr)< [FToolElementRegistrationArgs](API\Developer\WidgetRegistration\FToolElementRegistrationArgs) > RegistrationArgsSP, bool bUpdateRegistrationArgs )
Remarks
Generates the widget for the tool element denoted by the FToolElementRegistrationKey, using the specified TSharedPtr
Parameters
Name | Description |
---|---|
ToolElementKeySR | the TSharedRef |
RegistrationArgsSP | The SharedPtr to the FToolElementRegistrationArgs for the tool element for which which we want to generate the widget |
bUpdateRegistrationArgs | a bool that indicates whether we store any provided FToolElementRegistrationArgs as the new FToolElementRegistrationArgs for this tool element |