Using C++ with Unreal Engine gives you full control and access to the engine’s features so you can create new functionality within your project. It's perfect for creating complex systems, optimizing performance, and taking your game to the next level!
You can use Blueprints or C++ classes to create new functionality through code in Unreal Engine. Blueprints is the engine’s visual coding tool. It’s beginner friendly, easy to discover, and quick to edit. You’ll edit Blueprints in UE’s Blueprint Editor and end up with a Blueprint-type asset in your Content Browser.
However, Blueprints can become hard to read and manage as they grow in complexity. In larger projects, C++ is more concise to read, performs faster, and gives you access to all functionality within Unreal so you get full control over gameplay mechanics.
C++ and Blueprints also work together! You can extend your C++ class to a Blueprint so designers can easily tweak variables or use it in a more visual way. The Blueprint acts as a child of the C++ class, inheriting all functionality of the class.
In this tutorial, you’ll use C++ and Unreal Editor to set up a new UE code project and build a custom player character.
This tutorial requires Unreal Engine 5.6.1 or later. Unreal Engine 5.6.0 has a known issue that breaks Blueprint creation from C++ in Blueprint-based projects, which is required for this tutorial series.
Before You Begin
Read the other getting-started pages in Unreal Engine for New Users.
Let's Go!
Set Up and Compile Your Project
Learn how to set up and compile a new C++ game project from a template.
Create a Player Character With Input Actions
Learn how to start building a C++ character with Input Actions.
Configure Character Movement
Learn how to bind player input to character movement in C++.
Add a First-Person Camera, Mesh, and Animation
Learn how to use C++ to attach mesh and camera components on a first-person Character.
Manage Items and Data
Learn to use Item Data Structs, Data Assets, and Data Tables to define items and store and organize item data for scalability.
Create a Respawning Pickup Item
Learn how to use C++ to create custom pickups and initialize them in your level.
Equip Your Character
Learn to use C++ to create custom equippable items and attach them to your character.
Implement a Projectile
Learn to use C++ to implement projectiles and spawn them during gameplay.