Changing Structure breaks Blueprint and DataTable

I finally found a workaround to this problem. AmphDev’s workaround didn’t work for me, but it was the right idea and sent me down this path.

  1. Open project in UE4.
  2. Go to your project’s content folder in explorer, and recursively make everything read only. (I did this on Content\FirstPersonBP\Blueprints for my project)
  3. In explorer, locate the child struct and parent struct(s) that you want to change, and uncheck read only.
  4. Change the child struct as you please, and save it. Then save the parent struct(s).
  5. Close the UE4 editor (don’t let it save the files it thinks has changed, it won’t be able to anyway).
  6. Go back to explorer where you recursively made everything read only, and uncheck read only.
  7. Open your project back up.
  8. Rejoice, for your old code is still together and functional!

Fundamentally, it seems like changing a child struct destroys the parent struct for long enough that any assets using the parent struct have a bunch of references removed. So, if you make those assets read-only, the UE4 editor can’t stomp all over them.

What a frustrating bug. Hours upon hours wasted…

1 Like