Naming Conventions in Unreal Engine 5 C++

Written on: 16 January 2025


// Use PascalCase for variables
float MyVariable


// b* prefix for Boolean
bool bHasValue


// E* prefix for Enum
enum class EMyEnum


// F* prefix for Struct (and some other internal classes)
struct FMyStruct


// T* prefix for Templates
template <typename T>
class TMyClass


// U* prefix for UObject inherited
class UMyObject


// A* prefix for AActor inherited
class AMyActor


// S* prefix for SWidget inherited
class SMyWidget


// I* prefix for abstract interfaces inherited
class IMyInterface


// UE_* prefix & capitalized snake_case for Macros
#define UE_MY_MACRO

Source