Skip to main content

Converting Unreal Engine Project from Blueprint to C++

πŸšͺ Prerequisites Knowledge (Optional)

Know how to create a project in Unreal Engine.

❓ Key Question / Problem / Issue

  1. What’s the difference of Blueprint & C++ base project?
  2. How to converting Blueprint base project to C++?

βœ… Expected Output/Definition of Done

  1. Understand the difference of Blueprint & C++ base project.
  2. Can convert Blueprint base project to C++.

🎁 Resulting Solution

Source : How to convert a Blueprint Unreal Project to C++ Unreal Project

Converting a Blueprint project to a C++ project is very easy to do. A lot of people don't realise how simple it is. However, this should be treated as a one-way thing due to dependencies and stuff. So make sure this is what you want to do before going ahead.

Preparation

So to begin with, I'll assume you have Visual Studio or JetBrains Rider installed. Make sure to also have the C++ tools required to build the projects.

you can checkout Unreal Engine 5 Installation page to install any required component to open unreal C++ projects

The Conversion

This is the most simple step.
Go to File -> New C++ Class.

UE4 New C++ Class In File Menu

This will open a window where you can select the parent C++ class for your new class. Select what you want or just go with None. None will give you an empty class.

UE4 New C++ Class Parent Selector

After choosing the parent class, continue through the menus until Unreal asks if you want to recompile now. You can select either yes or no. Don't be worried if it fails to compile for the first time though, it's a common thing that even I encounter nearly all the time. Just restart the editor and you'll be all good.

You may get an error when opening a freshly converted project, this error will tell you it couldn't be compiled. This isn't too much of a problem, just open the .sln file in either Visual Studio or Rider and compile from within there. This shouldn't happen on relatively empty projects but may happen if you already rely on some external plugins.

So what can you now do with your C++ project? A lot of things, If you've built Unreal from source, you can create dedicated servers, modify how Actors work, and much, much more.