/Engine/Source/Developer/WidgetRegistration/Public/ToolElementRegistry.h
Generates the widget for the tool element denoted by theFToolElementRegistrationKey, using the specified TSharedPtrif provided (otherwise it will use the default registered registration arguments. If bUpdateRegistrationArgs is set to true and RegistrationArgsSP is not nullptr, the specified registration args will replace the existing ones for the tool element.
[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 )