[RESOLVED]Widget not working at first play?

Hi, I am adding a widget to the viewport from c++. In the widget blueprint, at event construct I am moving some images to a different position. When I open the editor and hit play, these images don’t move. If I hit play again, all works fine. Things is when I package the game, the images dont move. Any idea why ? Thankyou

How early are you adding the widget? they need a viewport to operate. A Constructor is an unusual place to add a widget. You usually add it on BeginPlay at minimum.

if you can see it pop in, you can add a black overlay and fade it out when all your initialization operations have completed.
which probably won’t take more than a few ticks.

In Level Blueprint, at event begin play I create the widget.

In general you should be doing all the cosmetic stuff in blueprints, there’s no need to create a widget in C++ as it’s way more cumbersome and the result is the same.

Small event based logic in blueprint is ideal.

it seems that the widget was working fine, the problem was a set resolutin command I was calling before making the widget. I am sorry for bothering you.

thankyou for your time