# Input Variables in my blutility resets everytime I reopen the window/level,Input variables in my Blutility resets everytime I reopen

**URL:** <https://forums.unrealengine.com/t/input-variables-in-my-blutility-resets-everytime-i-reopen-the-window-level-input-variables-in-my-blutility-resets-everytime-i-reopen/450147>\
**Category:** Blueprint\
**Tags:** Blueprint-Utilities, Blutilities, unreal-engine, UE4, question\
**Created:** [June 4, 2019, 8:01pm UTC](https://forums.unrealengine.com/t/input-variables-in-my-blutility-resets-everytime-i-reopen-the-window-level-input-variables-in-my-blutility-resets-everytime-i-reopen/450147 "2019-06-04T20:01:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_ffa18210](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ffa18210](https://forums.unrealengine.com/u/anonymous_user_ffa18210)\
**Post date:** [June 4, 2019, 8:01pm UTC](https://forums.unrealengine.com/t/input-variables-in-my-blutility-resets-everytime-i-reopen-the-window-level-input-variables-in-my-blutility-resets-everytime-i-reopen/450147/1 "2019-06-04T20:01:09Z")

</div>

Hey Guys,

I have blutility class where I can take input from the user, but, everytime I close the window the text fields are reset. Is there any solution, so that the values persist even with closing and reopening of the blutility window?

Thank you

 ![278845-bp-collectdata.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/b/54bcf260d37dd20f31d05a51c0135e51275ba4c5.png)

,

---

<div class="post-metadata">

**Author:** ![EdBennett](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EdBennett](https://forums.unrealengine.com/u/EdBennett)\
**Post date:** [June 4, 2019, 9:24pm UTC](https://forums.unrealengine.com/t/input-variables-in-my-blutility-resets-everytime-i-reopen-the-window-level-input-variables-in-my-blutility-resets-everytime-i-reopen/450147/2 "2019-06-04T21:24:14Z")

</div>

To make variables not reset I store them in the game instance. The game instance stays the same as long as you are playing the game. It does, however, mean you need to cast to the game instance to get and store them. Here is a good video on the topic:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/b/1/7b11150d2dfb9ab9d4e2f4dfb2cd7cedb4e480c9.jpeg "HTF do I? Use the GameInstance Object in Unreal Engine 4") ](https://www.youtube.com/watch?v=5w594D3qtLs)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ffa18210](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ffa18210](https://forums.unrealengine.com/u/anonymous_user_ffa18210)\
**Post date:** [June 5, 2019, 6:46pm UTC](https://forums.unrealengine.com/t/input-variables-in-my-blutility-resets-everytime-i-reopen-the-window-level-input-variables-in-my-blutility-resets-everytime-i-reopen/450147/3 "2019-06-05T18:46:02Z")

</div>

Thank you so much for this, it was really helpful.
