I always used blueprint but I need to add some c++ classes. When I right click and create a GameInstance I can’t see the class. I restart the editor and it says “the following modules are missing or built with a different engine version”. I read that I should run this on VS and compile. I have no idea how to do this can someone help me? Thanks guys you’re the best
Do you have visual studio installed with the Unreal tools?
I suppose yes, because I can compile my videogame
Right-click the .uproject file (in your project root), you should see some Unreal-specific options. Click “Generate Visual Studio project files”. That should create a .sln “solution” file in the same directory which can be opened with Visual Studio. If you manually add new .cpp or .h files to your project, you can repeat this (even when Visual Studio is already open) to update the file list inside Visual Studio.
With that solution open in VS, have a look at the toolbar at the top for something that looks like a play button. For me this reads like “|> Local Windows Debugger”. You can choose the launch configuration in a drop-down to the left of this (you probably want configs including “Editor”, leave it on “Win64”). The “play” button compiles your project and launches Unreal with your project open, with the VS debugger attached so you can breakpoint and do other fun debugging stuff. Shortcut is F5.
Thanks dude solved it I just needed the blue icon of ue4 that’s why I wasn’t able to check on the generate visual studio files