# Editing Default Values of a struct variable in details panel does not work

**URL:** <https://forums.unrealengine.com/t/editing-default-values-of-a-struct-variable-in-details-panel-does-not-work/304265>\
**Category:** Blueprint\
**Tags:** Struct, unreal-engine, Blueprint, question\
**Created:** [January 18, 2015, 1:52am UTC](https://forums.unrealengine.com/t/editing-default-values-of-a-struct-variable-in-details-panel-does-not-work/304265 "2015-01-18T01:52:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hyperloop](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hyperloop/32/1203427_2.png) [@Hyperloop](https://forums.unrealengine.com/u/Hyperloop)\
**Post date:** [January 18, 2015, 1:52am UTC](https://forums.unrealengine.com/t/editing-default-values-of-a-struct-variable-in-details-panel-does-not-work/304265/1 "2015-01-18T01:52:03Z")

</div>

When working with custom structs, changes you make to default values are not preserved after you compile blueprint.

Win 7 UE 4.6.1

Repro:

1.Make a struct with some bool values in it.

2.Make a variable of that type in a Blueprint and make it an array.

3.Edit values of struct in details panel of blueprint

4.Compile

5.Values will sometimes fail to save. Once values fail to save they will continue to behave erratically.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [January 18, 2015, 7:49pm UTC](https://forums.unrealengine.com/t/editing-default-values-of-a-struct-variable-in-details-panel-does-not-work/304265/2 "2015-01-18T19:49:16Z")

</div>

Hey ,

I was able to reproduce this, but only in one circumstance: with bool defaults set in Struct, setting them all to false in Blueprint variable and hitting compile will return them all to defaults set in Struct. I wasn’t able to reproduce this with any other type of value or in any other circumstances. Can you confirm that this is what you’re seeing, or if it’s happening in other ways or with other types? Thanks!

---

<div class="post-metadata">

**Author:** ![Hyperloop](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hyperloop/32/1203427_2.png) [@Hyperloop](https://forums.unrealengine.com/u/Hyperloop)\
**Post date:** [January 18, 2015, 9:41pm UTC](https://forums.unrealengine.com/t/editing-default-values-of-a-struct-variable-in-details-panel-does-not-work/304265/3 "2015-01-18T21:41:55Z")

</div>

I want to say I had issue with a custom enumeration data type as well, but to be sure I will check again when I’m at my workstation. Booleans definitely are where I noticed it though so it does sound like you’ve reproduced what I am seeing.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [January 19, 2015, 9:17pm UTC](https://forums.unrealengine.com/t/editing-default-values-of-a-struct-variable-in-details-panel-does-not-work/304265/4 "2015-01-19T21:17:29Z")

</div>

Hi ,

I was able to reproduce this with all other variable types as well. When all values are set to 0 (or False, or default Enum value, etc) in BP struct variable, they will return to Struct’s default values on compile. I have entered a bug report for developers (UE-7817) and I’ll let you know when I see an update. Thanks for report!

---

<div class="post-metadata">

**Author:** ![DesertEagle\_PWN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DesertEagle\_PWN](https://forums.unrealengine.com/u/DesertEagle_PWN)\
**Post date:** [April 20, 2015, 6:04am UTC](https://forums.unrealengine.com/t/editing-default-values-of-a-struct-variable-in-details-panel-does-not-work/304265/5 "2015-04-20T06:04:22Z")

</div>

I’m having same issue with regards to default struct values; however your solution doesn’t seem to work. Everytime I restart me project value of one of my struct variables (which is set to default to 5) is always zero. This is what both struct and BP implementing it look like when I start editor:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/d/80d013065615240464a5233b713376f8c5f98182.jpeg)  
Every time I reload project value in BP struct’s look sensitivity field is set to 0.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [April 20, 2015, 3:22pm UTC](https://forums.unrealengine.com/t/editing-default-values-of-a-struct-variable-in-details-panel-does-not-work/304265/6 "2015-04-20T15:22:29Z")

</div>

Hi DesertEagle,

This appears to be a separate issue, but I wasn’t able to reproduce it. Is struct variable inherited from a parent Blueprint? Which version of engine are you using? Are you able to reproduce this behavior in a new project?

---

<div class="post-metadata">

**Author:** ![Clutch035470](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Clutch035470](https://forums.unrealengine.com/u/Clutch035470)\
**Post date:** [October 13, 2017, 11:22pm UTC](https://forums.unrealengine.com/t/editing-default-values-of-a-struct-variable-in-details-panel-does-not-work/304265/7 "2017-10-13T23:22:59Z")

</div>

@DesertEagle_PWN  
how did you get your struct to display horizontally?!
