# Variables get zeroed out in child blueprints

**URL:** <https://forums.unrealengine.com/t/variables-get-zeroed-out-in-child-blueprints/308846>\
**Category:** Editor Scripting\
**Tags:** Variable, unreal-engine, Blueprint, question\
**Created:** [March 3, 2015, 3:27am UTC](https://forums.unrealengine.com/t/variables-get-zeroed-out-in-child-blueprints/308846 "2015-03-03T03:27:37Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Hancy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Matt\_Hancy](https://forums.unrealengine.com/u/Matt_Hancy)\
**Post date:** [March 3, 2015, 3:27am UTC](https://forums.unrealengine.com/t/variables-get-zeroed-out-in-child-blueprints/308846/1 "2015-03-03T03:27:37Z")

</div>

I have a parent blueprint that I created a float variable in (set the value to 50), then set that variable to be editable and made a child blueprint. I edited that variable on the child to be (30) and everything worked fine in version 4.5 When the project was converted over to 4.7 all of my variables in the children blueprints have been wiped out or set to zero. This not only happened on floats but also class variables were cleared out. This also happened in all of my child blueprints’s even ones with other parents.

I tried a few different things, on the variable in the child bp I have clicked the yellow arrow to reset the value to the default, compiled and saved the blueprint. But when I close and reopen the editor it wipes out all of my values again back to “0”. I know you no longer need to set the editable flag to expose the variable so I also tried unchecking this, compiling the master, saved, compile the child, edited the child value, saved and re-opened but with the same results. My variable is not set anywhere in the construction script (I’ve seen some other people with this issue)

(One note is that this content was made in 4.5 and converted over to 4.7 however I have also created a new variable in 4.7 and I get the same results)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2d3ed244](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2d3ed244](https://forums.unrealengine.com/u/anonymous_user_2d3ed244)\
**Post date:** [March 4, 2015, 7:23am UTC](https://forums.unrealengine.com/t/variables-get-zeroed-out-in-child-blueprints/308846/2 "2015-03-04T07:23:22Z")

</div>

Your bug report is spot on - this was fixed in [this commit](https://github.com/EpicGames/UnrealEngine/commit/5b06ef7cd541deb6dc0c57fc7ed19868ba7a1916). Unfortunately it won’t be fixed in the binary releases until 4.7.3.

Thanks for taking the time to report the issue - your post is very clear and I think it might help other people figure out what’s going on until we get the hotfix out. As far as I can tell there should be no data loss, so you should not have to reconvert your project once the hotfix is released.

---

<div class="post-metadata">

**Author:** ![Kelint](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kelint/32/470173_2.png) [@Kelint](https://forums.unrealengine.com/u/Kelint)\
**Post date:** [March 4, 2015, 10:04pm UTC](https://forums.unrealengine.com/t/variables-get-zeroed-out-in-child-blueprints/308846/3 "2015-03-04T22:04:23Z")

</div>

Any idea when 4.7.3 will release? I’m having this issue too

---

<div class="post-metadata">

**Author:** ![Eryuyu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eryuyu](https://forums.unrealengine.com/u/Eryuyu)\
**Post date:** [March 8, 2015, 9:18pm UTC](https://forums.unrealengine.com/t/variables-get-zeroed-out-in-child-blueprints/308846/4 "2015-03-08T21:18:19Z")

</div>

Kelint 3 days ago  
Any idea when 4.7.3 will release? I’m having this issue too +1

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [March 11, 2015, 4:52am UTC](https://forums.unrealengine.com/t/variables-get-zeroed-out-in-child-blueprints/308846/5 "2015-03-11T04:52:07Z")

</div>

Download the 4.7 branch and compile it from source. The issue is fixed there.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2d3ed244](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2d3ed244](https://forums.unrealengine.com/u/anonymous_user_2d3ed244)\
**Post date:** [March 12, 2015, 9:23pm UTC](https://forums.unrealengine.com/t/variables-get-zeroed-out-in-child-blueprints/308846/6 "2015-03-12T21:23:14Z")

</div>

I don’t have an exact date for 4.7.3 - we are trying to be very selective with changes, but also want to get as many fixes in as possible _and_ we want to test it well. 1 week is my conservative estimate.

---

<div class="post-metadata">

**Author:** ![Kelint](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kelint/32/470173_2.png) [@Kelint](https://forums.unrealengine.com/u/Kelint)\
**Post date:** [March 17, 2015, 7:04am UTC](https://forums.unrealengine.com/t/variables-get-zeroed-out-in-child-blueprints/308846/7 "2015-03-17T07:04:43Z")

</div>

ok thanks for letting us know

---

<div class="post-metadata">

**Author:** ![Litruv](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Litruv](https://forums.unrealengine.com/u/Litruv)\
**Post date:** [March 19, 2015, 1:50am UTC](https://forums.unrealengine.com/t/variables-get-zeroed-out-in-child-blueprints/308846/8 "2015-03-19T01:50:20Z")

</div>

The issue still persists with actor references.  
(4.7.3)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2d3ed244](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2d3ed244](https://forums.unrealengine.com/u/anonymous_user_2d3ed244)\
**Post date:** [March 24, 2015, 2:29am UTC](https://forums.unrealengine.com/t/variables-get-zeroed-out-in-child-blueprints/308846/9 "2015-03-24T02:29:09Z")

</div>

Can you start a new thread? Your project might be very helpful in reproducing this related bug.

---

<div class="post-metadata">

**Author:** ![Frozenfire](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frozenfire](https://forums.unrealengine.com/u/Frozenfire)\
**Post date:** [November 8, 2015, 9:03am UTC](https://forums.unrealengine.com/t/variables-get-zeroed-out-in-child-blueprints/308846/10 "2015-11-08T09:03:15Z")

</div>

Hi @Dan.OConnor , I have created a new thread with attached project and instruction and with more information regarding it.

> **[\[Bug w/ProjectFiles\] Default Value of blueprint reset to parent's default](https://forums.unrealengine.com/questions/330290/bug-wprojectfiles-default-value-of-blueprint-reset.html)**
>
> This is in regard to a widely reported bug of blueprint resetting itself to parent BP’s value. I’m creating a new thread because I’ve managed to identify the key factor that causes it and have included the project files. Causes: Blueprint value is...

---

<div class="post-metadata">

**Author:** ![skeleton60](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@skeleton60](https://forums.unrealengine.com/u/skeleton60)\
**Post date:** [January 11, 2016, 2:25am UTC](https://forums.unrealengine.com/t/variables-get-zeroed-out-in-child-blueprints/308846/11 "2016-01-11T02:25:21Z")

</div>

this bug is still here with editor version 4.10.1

its really annoying… it cause bug… so we search why the game bug and its always due to some child blueprint having their variable zeroed / reset

and we have to set again the value that we cant remember everytime child are reset…

please fix we cant work without using childs blueprint

---

<div class="post-metadata">

**Author:** ![JoeWintergreen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/joewintergreen/32/1194565_2.png) [@JoeWintergreen](https://forums.unrealengine.com/u/JoeWintergreen)\
**Post date:** [August 30, 2016, 10:40am UTC](https://forums.unrealengine.com/t/variables-get-zeroed-out-in-child-blueprints/308846/12 "2016-08-30T10:40:30Z")

</div>

This is still happening in 4.12.

---

<div class="post-metadata">

**Author:** ![UnexpectedSquirt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnexpectedSquirt](https://forums.unrealengine.com/u/UnexpectedSquirt)\
**Post date:** [October 27, 2016, 1:13pm UTC](https://forums.unrealengine.com/t/variables-get-zeroed-out-in-child-blueprints/308846/13 "2016-10-27T13:13:26Z")

</div>

This is still an issue in 4.12.1
