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. 

Call event on a widget

Hi, I need help for this blueprint, how can i call a custom event on a Widget, with a button on another Widget. I try to do this but doesn't work alt text

alt text

Please help me.

Product Version: UE 4.20
Tags:
buttonwidget.png (274.2 kB)
more ▼

asked Apr 23 '19 at 08:35 AM in Blueprint Scripting

avatar image

RDAavata97
5 1 1

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

2 answers: sort voted first

Something like this would do the trick I think, if I understood the question correctly. Basically, you Take your construct Event, put a Bind Event to (Event you want to bind), get the button you want the event to happen on, and the do your code on the custom event. https://blueprintue.com/blueprint/j0nnsu7e/

EDIT: My answer wont actually work for what you want. If I understand correctly, you want to get a custom event from one widget, and use it in another widget ? You'll need of reference to the widget with the custom event, and from there you'll be able to do what you want.

EDIT #2: If I understood correctly, here is a project that would do what you are looking for :https://www.dropbox.com/s/uke6dug84eo0phh/EventThroughWidgets.zip?dl=0

more ▼

answered Apr 23 '19 at 08:59 AM

avatar image

tbeaugelin
62 2 4 5

avatar image RDAavata97 Apr 23 '19 at 10:45 AM

Is it necessary add the widget in the hierarchy?

alt text

EDIT: Because i already have a main widget where i collect the other widget

picture.png (200.7 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

You really shouldn't do just random things and hope that they work. Check out Unreal Academy (or YouTube) and learn Blueprints first if you'd like to work with them, there are many great resources to start with.

more ▼

answered Apr 23 '19 at 09:03 AM

avatar image

KristofMorva
1.2k 4 5 7

(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