x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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?

Product Version: UE 4.21
Tags:
more ▼

asked Mar 09 '19 at 10:38 PM in C++ Programming

avatar image

SparkyTheTorch02
8 1 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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:

 "Modules": [
     {
         "Name": "NameOfModule",
         "Type": "Runtime",
         "LoadingPhase": "Default"
     }

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

https://docs.unrealengine.com/en-us/Programming/Plugins

more ▼

answered Mar 09 '19 at 11:17 PM

avatar image

Shadowriver
35.9k 928 169 1105

avatar image SparkyTheTorch02 Mar 09 '19 at 11:27 PM

Perfect! This is exactly what i'm looking for. Thanks!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question