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"

Casting umg button to bp actor? (step-by-step please)

I can't work out how to get a umg button click event to affect nodes in other blueprints. I've tried setting up casting but I continually get errors; I don't really understand exactly how to find the various nodes required.

If someone could explain the casting process, literally step by step, I'd be very grateful.

What I have set up already is an bp actor which swaps out a series of other bp actors when "home" is pressed. I need the umg button click event to link to the multigate in the actor bp allowing for both keyboard and button control.


Product Version: UE 4.10
more ▼

asked Jan 19 '16 at 12:03 PM in Blueprint Scripting

avatar image

13 2 5 7

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

1 answer: sort voted first

In order for umg to communicate with your actor, you need to find it first. Also, home is input from keyboard home key. So if you want to use widget button, create cust event in actor. Lots of ways to access it, but here's an example: in your umg construct, get all actors of class with your actor as class type, get index at 0 (assuming you only have one) , and set that object to a variable in widget. Then, on click, get that variable and call custom event in actor. You may want to watch the blueprint communication tutorial as well which gives a good overview of how this process works.

more ▼

answered Jan 20 '16 at 02:45 PM

avatar image

1.2k 49 31 87

avatar image AlexJG Jan 21 '16 at 09:46 AM

Thanks for your help!

(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