Struct Data Resetting to Default Values on Editor Restart

UPDATE: The bug has been solved!

I’ve managed to find a workaround to this bug and thought it’s worth sharing in case someone else runs into the same problem (since I’ve seen couple of posts that go way back regarding this issue).

Here is what I did:

  • I set the struct variable to not replicate and saved my project. If yours is not replicating, you may try to set it to replicate instead (for now, you can revert it later).

  • I then closed the Editor.

  • Upon reopening the editor again, I set the variable back to being replicated as it was initially (you may do the opposite as mentioned above), saved and closed the project once more.

  • After opening the Editor again, I found that the struct data was no longer resetting on Editor restart - and not only that, but data that has been previously lost now has been restored.

I’m not 100% sure how this fixed the issue, but my theory is that the variable got stuck in some bugged state that prevented it from being saved and by manipulating its settings (the replication), it forced the Engine to ‘refresh’ the variable.

I hope this helps in case anyone has the same issue.

Best of luck with your projects! :blush:

8 Likes