Struct change resets it

I have a struct which is used in several classes. Those classes have an array of this struct which array is filled and set up in the class defaults panel.
Every time I modify the struct (like add a new variable there) all the changes I made in the arrays disappear, the structs reset, have only their default values. By now it’s around 50 elements so I really don’t want to redo them every time I need to extend the struct.

I am having the same issue with 4.11. I use structs in my inventory for the display and data of that item. Sometimes, not always, I will add variables to the structs and it will reset the structs in my inventory pickups (actor blueprints) to default values.

I found a hacky workaround:

  • Save everything before changing the struct.
  • Change the struct.
  • Save the struct, and only that.
  • Quit the editor. DO NOT save changed blueprint assets! They already lost data.
  • Start the editor again, already set up structs should still have their proper values.
4 Likes

Thanks for the solution ZoltanE!

Does Epic know about this bug? I found it in UE 4.13 as well.

I’m not sure if Epic knows about this. Here is the list of BP structs related issues but I haven’t had the time to read it through: