How to change what the built in tool tip looks like

I did find that thread but wasn’t quite getting was happening. So was looking at it again and trying to see if I could get it, and I was able to figure it out so thank you for pointing me back to that.

But what I did to fix it was I had

UToolTipBase* NewToolTip = CreateWidget<UToolTipBase>(this, ToolTipWidgetClass);

In a separate location than where I was setting the text with

ResourceValue_TB->GetParent()->SetToolTipText(FText::AsNumber(Resource.Quantity));

And that setting of the text was resetting the tooltip back to generic one. So I instead combined that to all be in one location and set the text through a class I made for the tool tip itself rather than setting it with SetToolTipText()

UToolTipBase* NewToolTip = CreateWidget<UToolTipBase>(this, ToolTipWidgetClass);
NewToolTip->SetTipText(FText::AsNumber(Resource.Quantity));
ResourceValue_TB->GetParent()->SetToolTip(NewToolTip);
1 Like