UWidget’s ToolTipWidget Bind option is not drawn, can’t see any major differences between source of 4.26 and 5.
This is either a bugged binding draw or theres a new combination of options that I am not seeing in order to draw the bind again.
Have attempted to bind this function in C++
(Simply put)
void UInventoryItemWidget::NativeConstruct()
{
Super::NativeConstruct();
UPanelWidget* Panel = Cast<UPanelWidget>(GetRootWidget());
Panel->ToolTipWidgetDelegate.BindUFunction(this, FName("GetToolTip"));
}
UWidget* UInventoryItemWidget::GetToolTip()
{
UE_LOG(LogTemp, Warning, TEXT("GetToolTip"))
if(Item == nullptr) return nullptr;
ConstructedWidget = CreateWidget<UItemTooltip>(this, UItemTooltip::StaticClass());
ConstructedWidget->InventoryItemWidget = this;
return ConstructedWidget;
}
According to the BindUFunction it does find it, but it never gets called.
My solution has been to create the widget blueprint over in 4.26, create my initial binding and then copy the asset entirely over to my UE5 project.