# \[BUG\] Cannot set members in array of structs

**URL:** <https://forums.unrealengine.com/t/bug-cannot-set-members-in-array-of-structs/372424>\
**Category:** Blueprint\
**Tags:** Struct, unreal-engine, bug-report, Blueprint, question\
**Created:** [October 4, 2016, 11:18am UTC](https://forums.unrealengine.com/t/bug-cannot-set-members-in-array-of-structs/372424 "2016-10-04T11:18:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ambershee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ambershee](https://forums.unrealengine.com/u/ambershee)\
**Post date:** [October 4, 2016, 11:18am UTC](https://forums.unrealengine.com/t/bug-cannot-set-members-in-array-of-structs/372424/1 "2016-10-04T11:18:57Z")

</div>

Hello!

I have discovered that I cannot set a members in an array of structs. I have the following setup:  
[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/a/a3a86fdf6f7baf9b62ffca754ba16afc0de9378c.png) ](https://snipboard.io/dHOy0J.jpg)

Whilst ‘enabled’ is explicitly set to true on those two members (or a different two members on the other path), when the array is output by the loop, it is clear that the members are never actually set and they are still false.

This is probably the same bug as this one, but with a simpler setup.

> **[\[BUG\] Array Members in Arrays of Structs Just Plain Don't Work](https://forums.unrealengine.com/questions/477525/bug-array-add-fails-for-array-members-in-arrays-of.html)**
>
> Title is a bit of a mouthful, so in less concise terms and a picture paints a thousand words: If you have a struct with an array as a member, then create an array of those structs, attempting to use ‘Add’ on the...

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_61b4a355](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_61b4a355](https://forums.unrealengine.com/u/anonymous_user_61b4a355)\
**Post date:** [October 4, 2016, 2:52pm UTC](https://forums.unrealengine.com/t/bug-cannot-set-members-in-array-of-structs/372424/2 "2016-10-04T14:52:51Z")

</div>

Hey ,

Here is what I am seeing:

 ![109657-500534_arraystructset.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/0/2/e02ca4f9592d99ae093fb19c5273fec47f9a3ee5.png)

Can you explain more about what it is you are seeing? From my end, it looks like you can both get and set an array of structs.

Thanks.

---

<div class="post-metadata">

**Author:** ![ambershee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ambershee](https://forums.unrealengine.com/u/ambershee)\
**Post date:** [October 4, 2016, 3:15pm UTC](https://forums.unrealengine.com/t/bug-cannot-set-members-in-array-of-structs/372424/3 "2016-10-04T15:15:09Z")

</div>

You’re using ‘Set Array Elem’, and effectively replacing the entire struct which shouldn’t be necessary. My example which does not work uses Set Members in Struct, which should set a single member, but does not work.

Whilst what you are doing works and is what I have resorted to, I only want to set one member, and if it’s something like PostProcessSettings, which has so many members it can’t actually be displayed properly in Blueprint, it’s very undesirable to do it this way (especially if you do it frequently).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_61b4a355](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_61b4a355](https://forums.unrealengine.com/u/anonymous_user_61b4a355)\
**Post date:** [October 4, 2016, 3:36pm UTC](https://forums.unrealengine.com/t/bug-cannot-set-members-in-array-of-structs/372424/4 "2016-10-04T15:36:47Z")

</div>

Here is a known issue related to assigning structs in arrays, so you can follow its progress:

[https://issues.unrealengine.com/issue/UE-6451](https://issues.unrealengine.com/issue/UE-6451)

What I posted above is how you’d update structs in arrays, working around this issue.
