C++ for Unreal Engines
C++ in Unreal is the native code layer for gameplay and engine extension. Classes derive from engine types such as AActor, UActorComponent or ACharacter and are annotated with macros like UCLASS, UPROPERTY and UFUNCTION so the reflection system, garbage collector and Blueprints can see them. Code is built through Unreal Build Tool.
Stage: Systems · Part of the Unreal Engine roadmap · Last reviewed 19 November 2026
What to learn in C++
- Create a C++ actor class and expose properties to the editor with UPROPERTY
- Call C++ functions from Blueprints using UFUNCTION(BlueprintCallable)
- Explain what the Unreal reflection system and garbage collector manage
- Use TArray, FString and smart pointer types correctly
- Rebuild after header changes and fix common compile and hot reload errors
C++ interview questions
Why does Unreal use UPROPERTY and UCLASS macros?
The macros feed Unreal Header Tool, which generates reflection data. This lets the editor show properties, Blueprints call functions, and the garbage collector track references. A raw pointer to a UObject without UPROPERTY may be collected unexpectedly.
When would you choose C++ over Blueprints?
Use C++ for performance-critical code, core systems, large data handling and base classes. Blueprints suit rapid iteration, content setup and designer-facing logic. Many projects write base classes in C++ and extend them in Blueprints.
Where C++ fits in the Unreal Engine roadmap
C++ belongs to the Systems stage (intermediate level). Make it a game.
Other units in this stage
Back to the full Unreal Engine roadmap