Will c++ and Blueprints work in the same project?
Will c++ and Blueprints work in the same project? I have an ocean project in c++ that I want to use assets from, but the project I want to put them in is using blueprints. As long as I have a c++ compiler it should work right?
asked Mar 09 '19 at 10:38 PM in C++ Programming
Yes, what people consider "blueprint project" is UE4 project without any C++ module defined, thats it, but you can add it on the go. In fact such project still got option to add C++ class, which automatically creates C++ module in your project if it's missing, but you should not to that if you want to copy the code from other project. Coping Source won't be enough thru, you need to add the module to you uproject file using text editor:
Make sure everything you do there is JSON valid, look on any other C++ project uproject for example. The name of module is the same as directory inside Source or .build.cs file inside, renaming module is little bit hassle as you would need to rename all things in build scripts (.target.cs, .build.cs) as well as module class (NameOfModule.cpp and NameOfModule.h). But you don't need to rename if it not that impotent ;]
Once oyu set it up just right click uproject file and click generate VS project files, open sln file and build solution and try to run project
If you plan to reuse the code in multiple projects then you might consider putting your module in to plugin, so you dont need to toss code around
Follow this question
Once you sign in you will be able to subscribe for any updates here