Game Widgets don't work properly after package

Hello everybody, I have been working on my project for a while, but only noticed this problem recently. You see, I created 2 widgets, one is main menu

and the other one is gameGUI - displays health, hunger etc.

Whenever I try to play my game in the editor (any mode) it works just fine, but when i package the game, the issue shows up.!

I created the whole health, hunger etc. thing in my character BP, on the Event BeginPlay the character blueprint calls the health widget and adds it to view port. And the event tick updates three functions (health, hunger and thirst).

I tried many options, such as setting widget visibility to hidden and then casting from the level (which loads when clicked play) blueprint to Character BP and telling the widget to set visibility - visible, but i didn’t work. So I am asking for help, I really don’t know what to do.

Hello Miautawn,

I have a couple of suggestions to help workaround the issue and a few questions to help narrow down what issue it is that you are experiencing.

Suggestions:

  1. Have you tried setting the Zorder (found by clicking the down arrow on the “Add to Viewport” node)? This way you could set the menu to always show on top of all other UI (by giving it a higher value).
  2. Could you try searching trough your blueprints to make sure that the widget is not being added in multiple places?

Quick questions:

  1. Can you reproduce this issue in a clean project?
  2. If so, could you provide a detailed list of steps to reproduce this issue on our end?
  3. Could you provide screen shots of any blueprints/widgets/settings that will be needed to reproduce this issue on our end?

Hello Miautawn,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will follow up.

Thanks,

Oh thank you, I tried the first suggested option - the zorder, and it worked !