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"

Widgets can't clear timer by function name in UObject.

It appears as if widgets can't clear timers in UObjects. If I have a keyboard input that clears the timer, it clears. If I have a widget button that calls a function that clears the timer, it's not clearing. If I try to clear the timer directly from the widget, it's not clearing.

Replication:

  • Third person template. Show mouse.

  • Create a blueprint, type Object. Add a function called 'loopf', which prints string "hello".

  • Create a widget with a button. When pressed, it calls 'CustomEvent_1' in the character.

  • Create the following setup inside the character: alt text

Expectation: pressing either "2" or the widget button should clear the timer.

Result: pressing "2" clears the timer, but not pressing the widget button.

Doing the same thing, but with a function inside the character does clear the timer by pressing the widget button. Any suggested work around? The looping timer must be inside an Uobject.

Product Version: UE 4.14
Tags:
timersetup.png (133.5 kB)
more ▼

asked Dec 12 '16 at 12:25 PM in Bug Reports

avatar image

ste1nar
68 8 14 18

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

1 answer: sort voted first

Hello ste1nar,

I was able to reproduce this issue on our end. I have written up a report and I have submitted it to the developers for further consideration. I have also provided a link to the public tracker. Please feel free to use the link provided for future updates. I was able to find a workaround that may be viable depending on your needs.

Link: https://issues.unrealengine.com/issue/UE-39629

Workaround:

I used tick in combination with a gate that I could open when calling a custom event. This means that the event calling the clear timer node will be from the blueprint that it is in, allowing you indirect communication. In the workaround provided below, I have set it up so that it will only call the Clear Timer By Function Name once and then reset itself so that it can be called again if needed. I hope that this information helps.

alt text

Make it a great day

more ▼

answered Dec 12 '16 at 03:18 PM

avatar image

Rudy Q ♦♦ STAFF
47.3k 545 132 525

avatar image ste1nar Feb 11 '17 at 10:11 PM

I don't know if this is helpful or important in any way, but it is the same problem with starting timers from widgets.

(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