Setup: Array of structures “StructureA”. In StructureA, array of integers/strings/whatever. Result: Can’t set any element in integer/string/etc array.
I’ve attached demo project. From simple BP setup, it will print string showing that values 1,2 and 3 are added to integer array, but then, when trying to read these values, it will just print “0”. Same goes for array of Strings, where it will read just a blank field instead of added string values. SIMPLE DEMO PROJECT
Thank you for the report and the attached project, I was easily able to reproduce the issue. I created JIRA UE-20424 for the issue and our developers will be investigating it further. We will post here with updates as well have them.
Can you please elaborate on your workaround? I believe I’m running into this same issue with my inventory system (Character has array of clothing structures, clothing structure has array of items).
I can’t seem to figure out any way to work around this, and its really causing me a headache.
This was a workaround described to me by the devs. I hadn’t had time to try it but I just did and it doesn’t workaround the issue like we hoped. We will be investigating this issue but for now it doesn’t seem this exact setup with Struct Arrays is the way to go on this.
We are planning an overhaul of structs and arrays that will most likely fix this issue. We hope to have more news on this in a future update, however we do not currently have a timetable.
I can confirm I just discovered a similar issue related to nested Structs. I created a Struct with a bunch of values related to my buildings. Then created another Struct to created a list of edited values for different building types. Seems to work in the PIE but trying to use it in standalone it never reads the stored values in the Struct. If I close and open the editor the Structs and BP that reference the Structs get all messed up. Really annoying on a seemingly core function.