I made a simple testing Widget:
As root is a Canvas Panel and inside it I have a TextBox (with the text by default “Test Test…”) to which I changed Background Image Normal/Hovered/Focused Tint to color “Black” (0,0,0,1) and Text Style Color to “White” (1,1,1,1). Under that I have two buttons, each of them on click have the following:
Show Text (Show):
It makes a new EditableTextBoxStyle in which it is copied everything from the TextBox except in the color it changes the Alpha to 1, and then sets the new style to the TextBox.
Hide Text (Hide):
Same as “Show” except this time it changes the Alpha to 0.
Now the problem is that the Alpha doesn’t get changed. If I set the Alpha in text style to 1, and I press the hide button (which normally should copy the same style but change alpha to 0) it doesn’t get changed, and stays at 1. Same in reverse if I press the show button, it stays at 0.
As an additional test I split Background Image Normal then it’s tint and I changed the color to 1, 0, 1, 1 and it did changed on button press. Then I tried the same, instead to copy the old values I gave it new ones for color as well as Alpha, but text still doesn’t get changed (neither the color or the Alpha).
Note: In the bellow Image alpha is set to 1 for the text, even tho the button says hide, but when I did the testing for the color+alpha I changed the alpha of the text to 0. Just as a note because it is different from the above test when only alpha was tested not the color as well.
Shouldn’t it do what I was thinking it was suppose to do? Or is it a bug?
Unreal Engine version: 5.1.0



