Converting from Blueprint to C++
πͺ Prerequisites Knowledge (Optional)
Know how to create a project in Unreal Engine.
β Key Question / Problem / Issue
- Whatβs the difference of Blueprint & C++ base project?
- How to converting Blueprint base project to C++?
β Expected Output/Definition of Done
- Understand the difference of Blueprint & C++ base project.
- Can convert Blueprint base project to C++.
π Resulting Solution
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.

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.

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.