# Widget resetting variables to default

**URL:** <https://forums.unrealengine.com/t/widget-resetting-variables-to-default/485158>\
**Category:** UI\
**Tags:** default-value, unreal-engine, Widget, Blueprint, question\
**Created:** [June 21, 2021, 9:11am UTC](https://forums.unrealengine.com/t/widget-resetting-variables-to-default/485158 "2021-06-21T09:11:22Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Althaen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Althaen](https://forums.unrealengine.com/u/Althaen)\
**Post date:** [June 21, 2021, 9:11am UTC](https://forums.unrealengine.com/t/widget-resetting-variables-to-default/485158/1 "2021-06-21T09:11:22Z")

</div>

I have had this issue many times before and I am getting it again. Why does this issue continue to crop up? Has anyone figured out the fundamental causes? I can’t complete my project with this issue.

---

<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:** [June 21, 2021, 9:14am UTC](https://forums.unrealengine.com/t/widget-resetting-variables-to-default/485158/2 "2021-06-21T09:14:14Z")

</div>

Any details, references, other threads about it?

---

<div class="post-metadata">

**Author:** ![Althaen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Althaen](https://forums.unrealengine.com/u/Althaen)\
**Post date:** [June 21, 2021, 9:32am UTC](https://forums.unrealengine.com/t/widget-resetting-variables-to-default/485158/3 "2021-06-21T09:32:48Z")

</div>

No I even created a new variable to test whether something else was setting it. Get the exact same issue.

---

<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:** [June 21, 2021, 9:55am UTC](https://forums.unrealengine.com/t/widget-resetting-variables-to-default/485158/4 "2021-06-21T09:55:58Z")

</div>

You gotta give us _something_ to work with. 🙂

As you know, a widget does not reset values, not normally. Consider providing a semblance of circumstances at least. What makes this case different? What are you doing with those widgets?

Otherwise it is a bit like working under the assumption that 20 is a lot.

---

<div class="post-metadata">

**Author:** ![Althaen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Althaen](https://forums.unrealengine.com/u/Althaen)\
**Post date:** [June 21, 2021, 10:36am UTC](https://forums.unrealengine.com/t/widget-resetting-variables-to-default/485158/5 "2021-06-21T10:36:49Z")

</div>

I create the widgets and then later I set the item id of this widget whenever I update the inventory. If I print the value before setting it the value is correct. If I check it some time later it has been reset to the default value for no reason.

---

<div class="post-metadata">

**Author:** ![cyUod15171](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cyUod15171](https://forums.unrealengine.com/u/cyUod15171)\
**Post date:** [August 6, 2024, 12:00am UTC](https://forums.unrealengine.com/t/widget-resetting-variables-to-default/485158/6 "2024-08-06T00:00:07Z")

</div>

Hi Everynone,

I’m having the same issue…maybe you can help me or someone from this post can. I get a Blueprint runtime error: “Accessed none trying to read property inventorypanel” Node Clear children etc etc…  
So, I have a BP Widget called Menu and I renamed my uniform grid panel; inventory panel and set it as a variable in my widget. Other calls in different Blueprints work towards it but when I try to clear children in my pickup item function under my character Blueprint it comes up as “none”. I took a closer look at the default value of my variable, and it says “None” there’s no way of changing the default value? So, I’m a bit confused here…

---

<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:** [August 6, 2024, 5:13am UTC](https://forums.unrealengine.com/t/widget-resetting-variables-to-default/485158/7 "2024-08-06T05:13:00Z")

</div>

> [@cyUod15171](#):
>
> but when I try to clear children in my pickup item function under my character Blueprint

Can we see how you’re doing it?

---

<div class="post-metadata">

**Author:** ![cyUod15171](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cyUod15171](https://forums.unrealengine.com/u/cyUod15171)\
**Post date:** [August 6, 2024, 3:17pm UTC](https://forums.unrealengine.com/t/widget-resetting-variables-to-default/485158/8 "2024-08-06T15:17:54Z")

</div>

Sure, here is a screenshot of what I’m trying to accomplish. Even in the clear children it says the target is the panel widget…

 ![CannotClearChildren](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/6/2c69821918caf9c0894c71b1c4bf97fa6caff72d.png)

---

<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:** [August 6, 2024, 3:26pm UTC](https://forums.unrealengine.com/t/widget-resetting-variables-to-default/485158/9 "2024-08-06T15:26:53Z")

</div>

Separate thread:

> [@"Accessed none trying to read property InventoryPanel" Node: Clear Children](https://forums.unrealengine.com/t/accessed-none-trying-to-read-property-inventorypanel-node-clear-children/1963505):
>
> Hello everyone! I’m getting a Blueprint runtime error: “Accessed none trying to read property inventorypanel” Node Clear children etc etc… So, I have a BP Widget called Menu and I renamed my uniform grid panel; inventory panel and set it as a variable in my widget. Other calls in different Blueprints work towards it but when I try to clear children in my pickup item function under my character Blueprint it comes up as “none”. I took a closer look at the default value of my variable, and it say…

---

<div class="post-metadata">

**Author:** ![grabsdr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@grabsdr](https://forums.unrealengine.com/u/grabsdr)\
**Post date:** [October 26, 2024, 2:05pm UTC](https://forums.unrealengine.com/t/widget-resetting-variables-to-default/485158/10 "2024-10-26T14:05:43Z")

</div>

HI i have the same problem my widget reset veriables to default values when reopening

---

<div class="post-metadata">

**Author:** ![LC\_Design](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LC\_Design](https://forums.unrealengine.com/u/LC_Design)\
**Post date:** [April 1, 2026, 12:06pm UTC](https://forums.unrealengine.com/t/widget-resetting-variables-to-default/485158/11 "2026-04-01T12:06:29Z")

</div>

In case no one has figured it out yet, the way I was able to get the widget to remember variables was to have the variables set in a different blueprint. Then on event construct, it calls the blueprint and takes the variables from it.

You can either set them manually, or use an interface to send the data to the intermediate blueprint.

I’m still figuring out if this introduces different problems, but it seems like widgets do remember some things, but not all.
