# Stop a delay node

**URL:** <https://forums.unrealengine.com/t/stop-a-delay-node/743073>\
**Category:** Blueprint\
**Tags:** unreal-engine, Widget, question, Blueprint\
**Created:** [January 5, 2023, 7:37pm UTC](https://forums.unrealengine.com/t/stop-a-delay-node/743073 "2023-01-05T19:37:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeiankataTV](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DeiankataTV](https://forums.unrealengine.com/u/DeiankataTV)\
**Post date:** [January 5, 2023, 7:37pm UTC](https://forums.unrealengine.com/t/stop-a-delay-node/743073/1 "2023-01-05T19:37:29Z")

</div>

So I have a widget where after pressing a button it plays a delay node and after 8 seconds the button disappears. The problem is there that I have a back button and I want it when the back button is pressed to stop the delay node and not proceed with the removal of the button. Of course, if you have an alternative to a delay node whit which I can do the delay stop id appreciate it. If you need any further info just ask me. Thanks in advance

---

<div class="post-metadata">

**Author:** ![jay001020](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jay001020/32/1194524_2.png) [@jay001020](https://forums.unrealengine.com/u/jay001020)\
**Post date:** [January 5, 2023, 8:02pm UTC](https://forums.unrealengine.com/t/stop-a-delay-node/743073/2 "2023-01-05T20:02:59Z")

</div>

How about this…

Make a new function that causes the button to disappear. In the main blueprint graph, make a set timer by function name and put in the name of the function. Save the function handle as a variable so you can play with it later. Set the timer on the set timer by function node to 8 seconds. When you want to cancel the function event, plug the function handle variable into a clear and invalidate timer by handle node.

 ![timercancel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/3/9137cdcd0ffa92355eb8f9f6c24a63242779a267.png)

---

<div class="post-metadata">

**Author:** ![DeiankataTV](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DeiankataTV](https://forums.unrealengine.com/u/DeiankataTV)\
**Post date:** [January 6, 2023, 3:59pm UTC](https://forums.unrealengine.com/t/stop-a-delay-node/743073/3 "2023-01-06T15:59:52Z")

</div>

I do find this very useful but the thing is there that I have like 20 buttons like this and… is there any way to do it without making 20 new functions?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [January 6, 2023, 4:07pm UTC](https://forums.unrealengine.com/t/stop-a-delay-node/743073/4 "2023-01-06T16:07:20Z")

</div>

That’s why you do not use native buttons as-is. You wrap them in user widgets and then use them as the actual buttons. This is User Widget with just a button:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/f/aaff3f55d76b45483774e0a228d30d04ff347db6.png)

Think of this as of a smart button that has more functionality. If you ever want to change the buttons in the project to be green, you do not need to visit 28 different places. You make one change here, or expose variables and adjust those.

* * *

There’s a tut as of 3h ago:

> [@Buttons in scroll box](https://forums.unrealengine.com/t/buttons-in-scroll-box/407119/5):
>
> All of the above issues can be solved with a custom button. [CustomButtonAndScroll] Create a custom button: [image] Put custom buttons into the Scroll box: Access to the used button: [image] Add buttons at runtime: Get buttons in the scroll box: I hope it’ll be helpful to someone. [My Products](https://www.unrealengine.com/marketplace/en-US/profile/Aleksandr+Sidorov)
