Unreal Engine C++ vs. Blueprint: Which Should I Choose?

When creating a new Unreal Engine project, one of the first decisions you’ll need to make (usually right after ‘What do I name it?’) is going to be between using either Blueprint or C++ as your foundation. This decision has the potential to drastically affect how you develop your game, which makes it vitally important that you understand the strengths and weaknesses of each model.

Making an informed decision now will save you the tedium of having to switch mid-production later, which can be a huge hassle. Luckily in this case the solution is simple: Use both!

C++ and Blueprint are both viable and complimentary methods to construct a game in Unreal Engine, and Epic Games recommends using them in tandem to take advantage of the unique strengths of each. Unless you have an absolutely ironclad reason to commit solely to Blueprint, start with a C++ project and get the best of both worlds.

Both C++ and Blueprint have their own clear advantages and disadvantages. Luckily, when used together they can compensate for each other’s shortfalls.

Blueprints

Advantages

  • A solid teaching tool to get familiar with common patterns used in the game development industry, and how to think like a programmer.
  • Acts as a well-paced introduction to how Unreal Engine works.
  • It’s much faster to get a prototype off the ground and to get your game into a playable state.

Disadvantages

  • A number of the more advanced engine features are limited or unavailable. 
  • As a higher-level language, in general Blueprint will run slower than C++.
  • Large graphs with dozens of nodes can become unwieldy and difficult to read.

C++

Advantages

  • All of Unreal Engine’s features are available right from the start.
  • Those familiar with C++ will be able to dive into the engine’s source code.
  • Will generally execute faster, especially for low level operations.

Disadvantages

  • There is a greater barrier of entry.
  • It will take more work early in production to get your game up and running.
  • There is less of a safety net, making it easier to crash your game and/or the Editor.

In the end, you may find yourself leaning a little one way or the other. That, like most things in game development, will likely depend entirely on you and your team’s experience, and what your new project is all about. At the end of the day the optimal way to use utilize the power of the Unreal Engine will be highly specific to your project.

Still not sure about your decision? Let’s look a bit deeper.

What is Blueprint?

The far more advanced and flexible older brother of Unreal Engine 3’s Kismet, Blueprint is a visual scripting language that allows developers to create the logic for their games by connecting graphically represented nodes together.

It’s a bit like a giant flow chart, where the chain of the code’s execution (represented by a white line) can be followed through the graph, and what is happening easily understood.

A simple Blueprint graph. When the game begins, it will move the player
pawn into a predefined position before printing to the debug log.

Epic Games’ heavy focus on Blueprint in the fourth iteration of their engine lowers the barrier of entry and allows non-programmers to dip their toe into creating functionality, while also providing an extensive and fully integrated toolset for advanced users.

Creating a Blueprint-only project

Pros

  • Blueprint is accessible, well-documented, and easy to grasp for those who are new to writing code for games. For many it is their first introduction to creating game logic, and acts as a springboard for more complex programming languages.
  • Blueprint will walk you through how Unreal Engine expects you to program your game, firing off warnings whenever you try anything that might cause your game to lock up or otherwise crash. It acts as a fantastic introduction to how the engine processes your instructions and basic best practices.
  • When using Blueprint it is a lot easier to turn your ideas into playable prototypes. It compiles faster, lets you work entirely within the Editor, and has been designed to be modular. This means developers can drag and drop whole sections of gameplay logic into their graphs all at once. With Blueprint you can be off and running within minutes.

Cons

  • On the flipside, Blueprint graphs are very visual – which means they inherently take up a lot more screen space to present the same amount of code. What might be achieved in 4 lines of code in C++, in Blueprint may completely fill your screen with interconnected nodes and wires. Things can get out of hand fast, leading to what many in the community call “Blueprint Spaghetti”. Yikes!
  • In a Blueprint-only project, many of the more obscure (but often not that obscure) features of the engine will be either severely limited, or not available at all. This was done, I imagine, to streamline the process and stop newer developers becoming overwhelmed with their choice of nodes, but sometimes the features that Epic chooses to leave out by default can seem quite arbitrary.
  • From the very first release of Unreal Engine, Blueprint has been famously slower than C++ – especially with low level tasks like mathematical calculations. This is still technically true, and in general using Blueprint over C++ will make your game run slower. However, vast improvements have been made over the years, and depending on the way your game functions this may or may not be a problem. You may not notice a difference in the performance of your game at all.

If you’d like to dive deeper into performance profiling, asset creator Christopher40k has created a whole suite of real-time comparisons that you can access here.

What is C++?

C++ is a ubiquitous text-based programming language found in software all over the world, from the operating system you’re using right now to a whole host of popular game engines. It is fast and powerful, and the backbone of the Unreal Engine.

An example of some C++ code from Epic’s virtual reality pawn. These are functions that
will print debug text on-screen when the player enters/exits a bounding volume.

Committing to only using C++

Pros

  • When creating a new C++ project all of the engine’s tools, features and options will be made available to you right off the bat If you know what you’re looking for, you’ll be able to find it.
  • If you’re working with C++, then you will have the option to work within the actual Unreal Engine source code and make any change you want. All you need is a GitHub account and the courage to dive headfirst into the unknown. Naturally, this is only recommended for advanced users who are very comfortable with the language. Have a look at this guide from Epic for more information.
  • C++ functionality is usually much quicker than its Blueprint equivalent, especially when doing mathematical calculations. This may not sound like a big deal for smaller games, but for even medium-sized projects there can be many thousands of math operations happening every single frame. It can add up, fast!

Cons

  • It has never been easier to learn how to program, but that doesn’t necessarily mean it’s an easy skill to learn. For a beginner, coding in C++ is generally not as intuitive as Blueprint. If you’re new to game development, programming, or even Unreal Engine specifically, there will be a more significant upfront cost in learning the basics.
  • C++ projects simply require a greater amount of lead-in time to get up and running. The process is less streamlined than Blueprint, and as a consequence there are just more hoops to jump through, even for experienced users.
  • This is the other side of the coin to the advantage of having all of Unreal Engine’s features without restriction immediately at your fingertips. It’s just a lot easier to accidentally break things. Blueprint’s compiler will hold your hand and warn you if you’re doing something dangerous, but in C++ you are expected to know a bit more about what you’re doing. With great power comes great responsibility and all that.

Using both Blueprint & C++ together

Now we’ve reviewed your options, let’s have a look at how they can be used together – and how their combined strength can be used to overcome their individual weaknesses.

  • When using both Blueprint and C++, you will be able to leverage the broader access and faster iteration/compile times that Blueprint affords while you’re prototyping, but when you’re satisfied you’ve proven your concept and you’re ready to optimize you can then move sections of your logic into C++ as required. Check out the documentation for more information on when you might want to do this.
  • With a little knowledge of C++, you’ll be able to ‘expose’ features that were previously off-limits to Blueprint. By creating your own nodes in C++ that can then be dropped into your graphs within the Editor, you can significantly expand the capabilities of your Blueprints in just a few lines.
  • Using Blueprints lowers the barrier of entry for you and your team to collaborate on game logic. While programmers will still be able to work within C++, creating the architecture and more advanced gameplay systems, your artists and level designers can use Blueprint to create higher level features, like placing triggers and firing events.

Final thoughts

Well, there you have it. I hope I’ve helped you make your decision. My recommendation is that no matter what kind of project you’re creating, generate a C++ Project. Even if you never open Visual Studio again, at least you’ll know it’s there if you need it.

The examples I have given in this article are based on years of experience working as a technical artist within Unreal Engine, but it’s important to remember that there is never a one-size-fits-all solution to game development.

When all is said and done, this is your project, and your team. Blueprint or C++, use whatever you’re most comfortable with.

If you do change your mind later, that’s okay too. Epic has you covered.

I am a technical artist from Adelaide, Australia. I created techarthub to share my knowledge and love for this industry. I hope you feel it too!

Related Posts

How to create a particle-based Ring Pulse effect, one of the most versatile components in your VFX toolkit.
In this tutorial we use one of Unreal Engine's default textures and some volumetric fog to create a 3D energy pulse effect.
Scroll to Top