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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

How to call a function that's inside a UMG widget

Hello everyone, what I'm trying to do is call a function that's inside my player's HUD widget to change the visibility of one of the icons to show. What I'm trying to setup is have an NPC quest giver change the visibility of the icon when the quest is given to the player.

However when I try to call the function the only node I get is this:

alt text

This is what my MainHUD widget graph looks like:

alt text

I'm still new to UMG in general so I hope that I'm simply just missing something and that it's not too hard to solve.

Thanks for any and all help!

Product Version: UE 4.10
cast.png (47.2 kB)
umg.png (88.0 kB)
more ▼

asked Jan 28 '16 at 12:46 AM in Blueprint Scripting

avatar image

43 17 17 19

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

I found out the issue, for whatever reason Unreal was firing the UMG funciton every frame. I managed to figure it out once I discovered that weird issue.

more ▼

answered Feb 23 '16 at 03:13 PM

avatar image

43 17 17 19

(comments are locked)
10|2000 characters needed characters left

You need to have a object refrence to call function on it, cast node is to change varable type of link not to get object.

First make object varable of you widget blueprint class then when you create a widget and add it to view port you surely use "Craete Widget" node same as shown here:


...which instantiate widget and return it refrence, set that refrence to varable you made and then from that varable you can call function inside your widget blueprints

You seem to missing basic knowledge about classes and object, here my tutorial which will open your eyes a little:


more ▼

answered Jan 28 '16 at 01:53 AM

avatar image

35.7k 925 168 1104

(comments are locked)
10|2000 characters needed characters left
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