What problem does it solve?
This guide helps Unreal Engine C++ developers follow correct reflection, memory management, and API usage patterns across UE5, including proper use of UPROPERTY, UFUNCTION, UCLASS, TArray, TMap, delegates, FName, FString, and GC handling to prevent common pitfalls.
Core Features & Use Cases
- UProperty/UFunction/Reflection basics: guidance on macros, GENERATED_BODY, and serialization to ensure reliable reflection and GC behavior.
- Containers & Memory: practical patterns for TArray, TMap, TSet, TOptional, and UObject pointers (TObjectPtr, TWeakObjectPtr) with safe lifetime handling.
- Delegates & Subsystems: patterns for dynamic/static delegates and common subsystem access methods to support responsive gameplay systems.
- Actor/Component patterns: guidance on AActor and UActorComponent lifecycles, component composition, and UE5 conventions.
Quick Start
Explain the foundational UE C++ patterns for a new UObject-derived class and generate a minimal example that demonstrates reflection, GC-safe pointers, and a simple container usage.