Can't build or open project after adding C++ actor class

In the Unreal 5.0 C++ Developer course, in the the Crypt Raider project, I got the point where I added the Mover actor class. I think the mistake I made was adding the C++ class before installing VS Code and changing the default source code editor.
It did not automatically open in the editor like on the video and when I restarted Unreal I get these errors:
image
image
I went back to the Compiling a C++ lesson in the Obstacle Assault project and noticed that I do not have the .workspace file. I’m guessing it didn’t create this because I hadn’t installed VS Code yet when I added the class?

I am stuck now. How do I get beyond this? It does not appear that I can open this in VS Code and build it and now I can’t even open the Unreal project at all.

Sadly, I wasn’t using source control and can’t revert this change.

I’d hate to have to start all over on this project and do all the level design again.

That just indicates a compilation error. You would need to go into Saved > Logs and look at the recent log to see why it failed to build.

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

Privacy & Terms