[HELP] Unreal Engine C++ class not saving/compiling changes after reopening project

Hello, I found the solution!
Basically, I set the startup project to compile all my classes.
I don’t know why, but for some reason Unreal Engine 5 wasn’t remembering the files and classes I had created before closing it.
I fixed it by enabling auto-compilation when opening UE5.
Now everything works fine, and I’m also able to create the build package to play the project outside the editor.