UMG - SetVisibility not working out of editor

Hi,

In C++, I have a ref to my UMG Main UI WIdget.
If I do WidgetHud->SetVisibility(ESlateVisibility::Hidden); while in PIE it’s working as expected. If I’m doing it in Game or Cook Game, it’s not working anymore and the UI is still showing up.

Thanks,

Hello Elvince,

I was unable to reproduce this issue on our end. I have a few questions that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Can you reproduce this issue in a clean project?
  2. If so, could you provide a detail list of steps in order to reproduce this issue on our end?
  3. Could you provide a screen shot of any code/blueprints that are involved with this issue?

I will look into this soon and come back to you.

Hello Elvince,

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 offer further assistance.

Thank you.

Ok this case is closed.
It seems that I had 2 widget created when seamless travelling, I need to dig into it.
So when hiding one, the other one was still there so this is why I tought that the hiding stuff was not working.

Sorry for the time lost.