Transparency in UMG not retained in viewport player
In UE 4.7.6, it seems that the alpha values are not being retained in UMG. When I'm building a menu with a transparent blue border (set by altering the brush colour) in the Widget editor, the menu takes on a solid blue colour when I run it in the level editor viewport. This is what it looks like in the editor:
Below is what the result is in the player.
Similarly, when I do something similar with the image and set an opacity value less than one, or attempt to add a throbber, the viewport does not seem to display it. It looks fine within the UMG editor.
But in the player, things are opaque. The throbber does not animate, and close inspection of the throbber shows that there are tiny x's inside.
I'm wondering what's the cause of this issue, and any help would be much appreciated!
Hello Infinite Zenith,
I was able to reproduce the effect that you are seeing on your end. However, this is working as intended. After seeing that you are creating and adding the widget to the viewport with the Event Receive Draw HUD I realized why it appears that your widgets are not showing as transparent. This is due to the fact that the Event Receive Draw HUD is called every frame. This means that you are creating a copy of the widget and adding it to viewport every frame. As they begin to stack up they become more opaque. Try adding the widget on begin play within the player controller instead. I hope that this information helps.
Make it a great day.
answered Aug 13 '15 at 01:44 PM
Rudy Q ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here