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. 

Can't communicate with widget component

Hello! I am experiencing problems when trying to create a inventory system with UMG.

I'm trying to put the widget as a component in my player character blueprint. The reason why I don't just add it to viewport is because I want it to be in 3D space, to work with the stereoscopic view of the Oculus Rift. Somehow when I drag of the widget component pin in my event graph and search for the variables in the widget class, I can't find then... It does however work when I use a create widget node in my graph editor instead of the widget component. From that one I can reference variables. I tried everything I know of and I can't seem to get it to work...

Any help will be greatly appreciated! //Edvin

Product Version: Not Selected
Tags:
more ▼

asked Feb 13 '15 at 02:01 PM in Blueprint Scripting

avatar image

Measuring
6 2 4 6

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

1 answer: sort voted first

Just came across this question and wanted to tell you that to do this, you need to call 'GetUserWidgetObject' on your widget component reference first. That will give you a reference to the actual widget (which you need to further cast to your Widget class) and you can then access variables/functions there,

more ▼

answered Feb 27 '15 at 11:41 PM

avatar image

xenlock
226 4 10 21

avatar image Measuring Mar 01 '15 at 11:30 AM

Hello! At first I did just that and it simply wouldn't work. Then after a long while it did start to work haha. But thank you for the answer!

avatar image Todd.Vance May 12 '18 at 03:34 AM

I'll add, I just had this issue. It doesn't work in the construction script, but you can put it after "Begin Play". Apparently GetUserWidgetObject is marked unsafe for construction scripts.

(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