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"

Wait for a widget to close

Hello, I'm making a function that opens a widget with custom properties and it should also wait for the widget to close and then finish. But I don't know how to wait for the widget. Any suggestions?

Product Version: UE 4.22
more ▼

asked Jun 19 '19 at 05:10 PM in Blueprint Scripting

avatar image

21 1 1 4

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

1 answer: sort voted first

You will not be able to do it in a single function unless said function is latent. If you want to do this purely on blueprints what you can do is in the object that calls the function have actually two funtions:

One for Starting the process (showing the widget)
Another for when the widget gets closed.

You can create the widget and pass a reference of the calling object to it, so the widget can call the second function the moment its closed. Or you can create an event dispatcher on the widget that gets called when the widget is closed, and subscribe to it from your original object/actor the moment you create the widget.

Both ways should work. The third alternative is creating a custom latent function, that will requiere C++. If you want more information on how to do that let me know and I can point you into some documentation and tutorials about it.

Hope this information helps you. Make it a great day.

more ▼

answered Jun 19 '19 at 05:22 PM

avatar image

1.2k 24 13 29

avatar image Redwoodstudio Jun 19 '19 at 05:26 PM

Thanks for the answer

(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