UMG Toggle Button BUG - After restart editor, Checked Image back to default

Hello!

I migrate my plugin to from UE 4.27.2 to UE 5.0.2.
My plugin use “Editor Utility Widget” with few buttons.
Some of them are “Check Box” with style “Toggle Button”.
First of all, after migration my Images in style completly disappear visually.
After start editing widget and see details I seen something strange.
UE5-bug-AfterRestart
So, simply I click “Reset this property to its default value” arrow.
And then again set my Image (or any other image). And everything start working fine.
UE5-bug-Good
BUT: After Editor Restart - Everything back to Oryginal Image like this:
UE5-bug-AfterRestart

It happen on “Checked Image”, “Checked Hovered Image”, “Checked Pressed Image”.
I don’t use “undetermine” - so don’t know behavior.

BUT: “Unchecked” style versions behave differentely.
When reset this property and setup new image:
UE5-bug-UncheckedGood
Everything look good in details panel and in real window in editor, but after restart:
UE5-bug-UncheckedAfterRestart
Image stay the same, but on top, it completly disappear.
So, after Editor restart I have no “unchecked” images.

I don’t check this bug on normal widgets, only on Editor Utility Widget.
I can’t find good Topic Category (where is UMG ?) so put it inside Rendering.

I can confirm - newly created “Editor Utility Widget”
has the same problem with “Check Box” with “Check Box Type” as “Toggle Button”.

This completely prevents me to build my own Tool in UE5 :frowning:

So, it’s definitely BUG in UE 5.0.2

I just test normal Blueprint Widget, and this BUG is not occur.

After restart I still have good images:
UE5-bug-NormalWidgetGood

So summarize BUG exist only in “Editor Utility Widget”.

Ok, I hack it by simple workaround. I have done it in Blueprint, but in C++ should work the same.

First you must reset button style to any other images, or simple without images:

Second you must set images manually to the “Check Box”:

It’s hardcoded solution - but work !
EPIC - please repair it in next release.
Where can I send more bugs ?

Up

The exact same thing happens with Spin boxes and normal buttons, but with Spin boxes the style wouldn’t reset to default on restart, only the hover outline would change color to either white, red, yellow or blue! Completely random after every restart!

The bug is easier to replicate with Buttons and Toggle/Check boxes, you would just have to customize the style and restart the editor, but with the Spin box I really couldn’t understand how an empty and newly created Editor Utility Widget could force a different outline color on hover after every restart.

It’s been more than two years - I’m wondering if you’ve reported this?