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"

Return Value Runtime Error

Hi everyone. I finally got a problem fixed but now ran into another problem. I have a widget button cast to the level bp with an event dispatcher. Ever time I click on the button everything plays just fine but when exit out I get a runtime error. However for some reason when I use a event begin play, it works with no problem! Can any please explain whats happening. Here are some screen shots. Widget_BP Level_BP

Product Version: UE 4.19
Tags:
more ▼

asked Jan 21 '19 at 10:33 AM in Blueprint Scripting

avatar image

animerick
30 1 4 7

avatar image Tuerer Jan 21 '19 at 11:33 AM

Do you destroy the vidget when you exit? You can bind to event ONCE after the widget is created. Binding to it every tick is counterproductive, and I believe it is what causes the error. Your widget is destroyed, but you're still trying to bind to its event.

avatar image animerick Jan 21 '19 at 11:42 AM

Yes I did destroy the widget on exit although it's not shown in this example. But would removing all widget be the same as destroying it? Also, if that's the case I'm guessing I should get rid of Event Tick and if so, what else can I use to make sure the button the widget is click?

avatar image animerick Jan 21 '19 at 11:51 AM

Hey thanks, you were right. Event Tick was the problem but now I'm trying to figure out what else I can use.

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

1 answer: sort voted first

I think the problem is that you attach your "bind event" to tick function. it will attempt to make a new binding on every tick. which is totally wrong :)

you can simply bind your event ( and should ) once and they will work until you unbind them.

the issue is that the value you are using for the binding is coming from another flow and it might not exist.

more ▼

answered Jan 21 '19 at 11:58 AM

avatar image

plangton
367 17 20 31

avatar image animerick Jan 21 '19 at 12:13 PM

Thanks Plangton, you were right. It's working fine now. Silly me on binding to the tick lol :D.

(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