# How to reset the values of the variables in an Editor Utility Widget once its closed or on opening it

**URL:** <https://forums.unrealengine.com/t/how-to-reset-the-values-of-the-variables-in-an-editor-utility-widget-once-its-closed-or-on-opening-it/480766>\
**Category:** Blueprint\
**Tags:** editor-utility-widge, Blueprint-Utilities, Blutilities, unreal-engine, Widget, question\
**Created:** [March 23, 2021, 3:21pm UTC](https://forums.unrealengine.com/t/how-to-reset-the-values-of-the-variables-in-an-editor-utility-widget-once-its-closed-or-on-opening-it/480766 "2021-03-23T15:21:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_bf1c686f1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bf1c686f1](https://forums.unrealengine.com/u/anonymous_user_bf1c686f1)\
**Post date:** [March 23, 2021, 3:21pm UTC](https://forums.unrealengine.com/t/how-to-reset-the-values-of-the-variables-in-an-editor-utility-widget-once-its-closed-or-on-opening-it/480766/1 "2021-03-23T15:21:50Z")

</div>

The only time the Editor Utility widget variable values seem to reset is on Editor restart, I just can’t seem to be able to reset the values anywhere. How would I reset the values on exit or open?

 ![333342-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/0/9108d1bee824a74af7667fb9e9f12e320d9cf3e5.png)

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [March 23, 2021, 4:05pm UTC](https://forums.unrealengine.com/t/how-to-reset-the-values-of-the-variables-in-an-editor-utility-widget-once-its-closed-or-on-opening-it/480766/2 "2021-03-23T16:05:20Z")

</div>

You can try to use **On Added To Focus Path** and **On Removed from Focus Path** …

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bf1c686f1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bf1c686f1](https://forums.unrealengine.com/u/anonymous_user_bf1c686f1)\
**Post date:** [March 23, 2021, 4:13pm UTC](https://forums.unrealengine.com/t/how-to-reset-the-values-of-the-variables-in-an-editor-utility-widget-once-its-closed-or-on-opening-it/480766/3 "2021-03-23T16:13:01Z")

</div>

Oh, I got the problem, somehow the widget is not destructing properly on close, so every time i open it a new one is created but the previous ones stay in memory, I will have to check my cpp code on how to properly destroy the previous ones.
