I lose work when closing a UE5 project

I’ve had to start over more than a few times. After writing code and attaching it to a Mesh, compiling and running the game, then saving the project.
If I close it and come back to it at a later time, everything is gone. My code is still in the VS project. I have tr recompile for the class to be visible in UE5 and any meshes associated with the code are gone.

Has this happened to anyone else?

This is a live coding issue. Sometimes you see these sorts of issues and it points to 2 things.

The first is an error in the code so it is falsely reporting it succeeded
The second is that you have changes in the header or a new class added but it fails to find them.

In both cases, the easiest way to correct this is to close the editor, delete the binaries and intermediate folders and then build the code in your editor of choice. You can also open the uproject.

Give that a try and let me know how you get on.

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms