# How to set Default Values of Structures with Meshes/Objects?

**URL:** <https://forums.unrealengine.com/t/how-to-set-default-values-of-structures-with-meshes-objects/325709>\
**Category:** Editor Scripting\
**Tags:** savegame, instance, Structure, unreal-engine, question, Blueprint\
**Created:** [July 18, 2015, 11:44am UTC](https://forums.unrealengine.com/t/how-to-set-default-values-of-structures-with-meshes-objects/325709 "2015-07-18T11:44:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iohoilpotere](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Iohoilpotere](https://forums.unrealengine.com/u/Iohoilpotere)\
**Post date:** [July 18, 2015, 11:44am UTC](https://forums.unrealengine.com/t/how-to-set-default-values-of-structures-with-meshes-objects/325709/1 "2015-07-18T11:44:33Z")

</div>

Good evening everyone,

I have a problem to set the default values in a structure that contains a mesh (or any variable whose value is unsettable by the menu structure). I created a structure that defines items in the game but I can not populate it. I tried to enter the data both in the istance and in a savegame but when I go to change the default values the menu collapses forcing me to open it again losing time. Having to populate it with about a hundred items so I would like to know if there is a more efficient way to do it.

Thank you in advice!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a2779061](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a2779061](https://forums.unrealengine.com/u/anonymous_user_a2779061)\
**Post date:** [September 11, 2015, 10:21pm UTC](https://forums.unrealengine.com/t/how-to-set-default-values-of-structures-with-meshes-objects/325709/2 "2015-09-11T22:21:24Z")

</div>

I’m working on this very thing myself. I have tried busting the structure to set and passing the variable back but it doesn’t work. May have to go C++?

Would like some feedback on this one.

---

<div class="post-metadata">

**Author:** ![Iohoilpotere](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Iohoilpotere](https://forums.unrealengine.com/u/Iohoilpotere)\
**Post date:** [September 13, 2015, 11:34am UTC](https://forums.unrealengine.com/t/how-to-set-default-values-of-structures-with-meshes-objects/325709/3 "2015-09-13T11:34:56Z")

</div>

In 4.9 (and maybe 4.8?) we can set any variable in structure! Also the collapsing issue appear rarely!

---

<div class="post-metadata">

**Author:** ![rubenst](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rubenst](https://forums.unrealengine.com/u/rubenst)\
**Post date:** [January 7, 2016, 2:42pm UTC](https://forums.unrealengine.com/t/how-to-set-default-values-of-structures-with-meshes-objects/325709/4 "2016-01-07T14:42:14Z")

</div>

Collapsing issue appears again in 4.11-p1 and master, got a struct with an array of BP datatypes defined in c++, every time the focus changes the user defined struct editor collapses, making it virtually impossible to use.

---

<div class="post-metadata">

**Author:** ![Krabworks](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/krabworks/32/1194549_2.png) [@Krabworks](https://forums.unrealengine.com/u/Krabworks)\
**Post date:** [May 2, 2023, 7:42pm UTC](https://forums.unrealengine.com/t/how-to-set-default-values-of-structures-with-meshes-objects/325709/5 "2023-05-02T19:42:27Z")

</div>

Any fix for this issue? This bug is over 7 years old.

EDIT: Looks like it works if you edit it from the class defaults. ABSOLUTELY Should NOT be necessary given this bug is 7 years old, but it’s a workaround
