UMG: Set Visibility won't work on user created widget?

Hi,
Maybe this is bug?
If you set placed user created widget’s visibility to hidden on designer view’s detail panel, at runtime you wan to show it, the Set Visibility won’t work.:

Are you setting the visibility in the UMG graph? I’ve experienced some issues receiving input within that blueprint. I would recommend an external approach. The way I usually drive changes in UMG (such as changing the color, or hiding elements like you are) is by casting to the widget. You can do this by using “Create Widget” in a separate blueprint (I manage mine in my Game Mode BP), selecting your UMG blueprint under “Widget Type”, and dragging off the return value to create a cast to the widget. You can then drag off the "As _____(name of your UMG widget) node on the cast to grab your different buttons and things from UMG and edit them by using a Get and changing their parameters (as long as they are set as variables). This approach is demonstrated here:

https://docs.unrealengine.com/latest/images/Engine/UMG/QuickStart/4/New_25.jpg

GameHUD being their widget blueprint.

Just to add on to this in 4.5 I’ve noticed that the default “Hidden” in UMG works fine if I set it the designer, however if I bind a function to it, as seen below, it fails to change the visibility of the brush.

Please advise.

Hello alonezhby,

I have a question for you. Is the button that you are trying to make visible set to hidden on the original widget blueprint? If so you will need to set that to visible and then go into the widget that you are using to set the visibility and set it to hidden there. I hope this helps.

Example:
I try to set a button (let us call it button ‘B’) in Widget B to visible when a button (let us call it button ‘A’) in Widget A is clicked.

  1. I would set Button B to Visible in Widget B
  2. I would then bring Button B into into Widget A (via the “User Created” feature)
  3. I would then set Button B inside Widget A to hidden
  4. I would then go into Widget A’s graph and set up the button click event for Button A to set Button B to visible.

Cheers

Hi Rudy,
This is what I did as you said.

Last time I used 4.5 preview.
Right now, I use 4.5 release do a test, it’s working now.

Thanks

I am running into this issue as well now. Setting visibility in the designer works but once I’ve bound it either to a function or a variable (as we were able to do in 4.4) it no longer works. Hopefully a fix will be out soon, for now we’ve had to fall back to adjusting visibility with alpha in our pilot project.

1 Like

Hello Alt101,

Your issue is indeed similar to the one above. However, for tracking purposes we feel that the problem that you have mentioned is different enough that we would like you to post it as a separate question. After posting the new question I will be more than happy to assist you. Just provide a link to the new question in a comment on this page and I will begin assisting you.

Make it a great day.

Hey Rudy, I have a very similar problem and took your advice and posted a new thread - see link below.

Heaps of thanks in bunches.

link text