Hello guys,
I am making a tool to spawn widgets in separated unreal window.
The issue I am facing is that the custom tooltips of those widgets has a weird issue in their background. (video attached)
It seems that the background of those tooltips never clear so it shows the last shown tooltip in the next one.
Is there something I can do to fix this behaviour?
(I’ve attached a repro project. Simply play the UDN level in “New Editor Window” or “Standalone”. All the behaviour is in MultiWindowSubsystem.cpp)
Thank you very much.
[Attachment Removed]
Hi,
The tooltip window by default is set to EWindowTransparency::PerWindow and we pool tooltip widgets to avoid the creation/destruction cost, so that explains why you see the leftovers from previous tooltip widgets. You could avoid this altogether by giving your tooltips an opaque background, but if you do need to fully support transparency then you’ll need some C++. You could either use STooltipPresenter to draw the tooltip to the window directly instead of a separate SWindow, or you could modify SWindow::MakeToolTipWindow to pass in EWindowTransparency::PerPixel and force a clear on each frame. Alternatively, if you need to avoid engine changes, you could manually destroy the tooltip window via ResetTooltipWindow, but that will likely have a performance impact.
Best,
Cody
[Attachment Removed]