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

**URL:** <https://forums.unrealengine.com/t/widgets-cant-clear-timer-by-function-name-in-uobject/379064>\
**Category:** UI\
**Tags:** unreal-engine, bug-report, Widget, Blueprint, question\
**Created:** [December 12, 2016, 12:25pm UTC](https://forums.unrealengine.com/t/widgets-cant-clear-timer-by-function-name-in-uobject/379064 "2016-12-12T12:25:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ste1nar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ste1nar](https://forums.unrealengine.com/u/ste1nar)\
**Post date:** [December 12, 2016, 12:25pm UTC](https://forums.unrealengine.com/t/widgets-cant-clear-timer-by-function-name-in-uobject/379064/1 "2016-12-12T12:25:27Z")

</div>

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:

 ![118336-timersetup.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/f/7/bf793794666ddcaf3e262b0bce9e648dcf716f33.png)

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.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [December 12, 2016, 3:18pm UTC](https://forums.unrealengine.com/t/widgets-cant-clear-timer-by-function-name-in-uobject/379064/2 "2016-12-12T15:18:35Z")

</div>

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: [Unreal Engine Issues and Bug Tracker (UE-39629)](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.

 ![118355-widgetloopclearworkaround.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/3/8037d5b4d0c30714958a63f5217771951dddfaf8.png)

Make it a great day

---

<div class="post-metadata">

**Author:** ![ste1nar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ste1nar](https://forums.unrealengine.com/u/ste1nar)\
**Post date:** [February 11, 2017, 10:11pm UTC](https://forums.unrealengine.com/t/widgets-cant-clear-timer-by-function-name-in-uobject/379064/3 "2017-02-11T22:11:17Z")

</div>

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