x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Accessed none from UMG variable?

If you create a widget, add to viewport, then use the return value to set it to a user widget, shouldn't it work?

I have a door that when you reach near it you get a "o to open door" and its meant to get hidden when you enter the door. However I try to set visibility and link the target to my variable that has the user widget on it and it doesn't work, it returns none.

If I try to connect the return value to set visibility, it still returns none.

If I try to use a "doorumg" type of variable, it also not works.

How to you properly set a variable to the UMG you add to viewport so that you can access it's properties from any blueprint you add it to? So confused!!!

Product Version: UE 4.9
Tags:
more ▼

asked Nov 24 '15 at 04:57 PM in Blueprint Scripting

avatar image

UpARiver
225 21 28 91

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

1 answer: sort voted first

Here's an example that works for me of adding a widget to the viewport and storing its reference.

alt text

This example runs in the player controller blueprint. You could do something similar in other blueprints as long as you set the Owning Player parameter of the CreateWidget node to a player controller instance.

I hope this is helpful to you.

addwidget.jpg (162.1 kB)
more ▼

answered Nov 24 '15 at 06:11 PM

avatar image

Alderbit
871 36 14 59

avatar image UpARiver Nov 24 '15 at 09:37 PM

Thank you very much! :D

(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