Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

UMG: Set visibilty on text doesn't work at runtime

I'm trying to hide/unhide a textblock but I'm having little luck. I've attached an image which shows my setup, the variable VisVar prints correctly as do all the other prints telling me they communicate correctly.

I've seen other posts about this but am posting here as it was recommended to start a specific thread.

I've also tried to put my variable right in the visibility slot with no luck.

Am I doing something wrong?


alt text

Product Version: Not Selected
hidetext.jpg (233.4 kB)
more ▼

asked Nov 14 '14 at 12:18 AM in Blueprint Scripting

avatar image

206 11 18 19

avatar image cgrebeld Nov 14 '14 at 06:45 PM

I've seen this same bug - visibility (and other) bindings were apparently broken in 4.5.

avatar image RumbleMonk Nov 16 '14 at 02:10 AM

Thanks for the headsup! Maybe there's still a way to do it (See Rudy's reply below)... I'll post here if I can work around what might at best be a change of vis functionality. What I'm doing seems logical however so we'll see. I prefer as few odd 'gotchas' as possible in Unreal. :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hello RumbleMonk,

After looking through your blueprints I didn't see where you actually set the visibility. I see that you changed the variable but it seems you have yet to apply the change to the visibility setting of the text block.

Here is a simple example of a setup that I used. The example toggles the Visibility of a text block every time a certain button is pressed. After setting the visibility variable I connect it into a "set visibility" node. I believe this is the node that is missing in your blueprints. I hope this helps.

alt text

Make it a great day

vishelp.png (92.2 kB)
more ▼

answered Nov 14 '14 at 02:37 PM

avatar image

Rudy Q ♦♦ STAFF
47.4k 545 132 524

avatar image RumbleMonk Nov 16 '14 at 02:07 AM

Thanks for looking into this Rudy,

So just setting the variable and then setting my textblock to use that 'visvar' variable won't work? It seems odd that you can use the behaviour/visibility pulldown for the textblock to use that variable if so.

That's also why I tried both ways, setting the 'visvar' inside a function instead, both options being shown in my image above.

Anyhow - how did you get the text block reference variable (Text Block 259)? I can't figure that part out from my already existing (vs a runtime created one, which I don't even know if it's possible to create one at runtime) textblock.

I assumed that function was for vis switching full widgets, as in an entire widget. Looks like I was wrong. :)

Thanks again.

avatar image Rudy Q ♦♦ STAFF Nov 17 '14 at 02:53 PM

Hello RumbleMonk,

I am happy I could help. As for being able to use the textblock as a variable in your widget graph, you will need to check the "is Variable" check box in the detail panel.

As shown here:

alt text

I hope this helps

Make it a great day

textvarhelp.png (32.6 kB)
avatar image RumbleMonk Nov 19 '14 at 09:36 PM

Great! That works perfectly fine!

I'd still like to point out this seems like one of those gotchas that'll catch a lot of new users as I don't see a logical reason why my first attempt didn't work.

Thanks again anyway!

avatar image Two-faced Apr 26 '17 at 03:49 AM

Just remind you guys. You can't change visibility of 3D widget components. Change opacity instead.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question