UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CameraModifier_CameraShake.cpp File Reference

Functions

 DEFINE_LOG_CATEGORY_STATIC (LogCameraShake, Warning, All)
 
 DECLARE_CYCLE_STAT (TEXT("AddCameraShake"), STAT_AddCameraShake, STATGROUP_Game)
 

Variables

TAutoConsoleVariable< boolGShowCameraShakeDebugCVar (TEXT("r.CameraShakeDebug"), false, TEXT("Show extra debug info for camera shakes (requires `showdebug CAMERA`)"))
 
TAutoConsoleVariable< boolGShowCameraShakeDebugLocationCVar (TEXT("r.CameraShakeDebug.Location"), true, TEXT("Whether to show camera shakes' location modifications (defaults to true)"))
 
TAutoConsoleVariable< boolGShowCameraShakeDebugRotationCVar (TEXT("r.CameraShakeDebug.Rotation"), true, TEXT("Whether to show camera shakes' rotation modifications (defaults to true)"))
 
TAutoConsoleVariable< boolGCameraShakeDebugLargeGraphCVar (TEXT("r.CameraShakeDebug.LargeGraph"), false, TEXT("Draws larger graphs for camera shake debug info"))
 
TAutoConsoleVariable< floatGCameraShakeDebugInfoRecordLimitCVar (TEXT("r.CameraShakeDebug.InfoRecordLimit"), 2, TEXT("How many seconds to keep while recording camera shake debug info (defaults to 2 seconds)"))
 

Function Documentation

◆ DECLARE_CYCLE_STAT()

DECLARE_CYCLE_STAT ( TEXT("AddCameraShake")  ,
STAT_AddCameraShake  ,
STATGROUP_Game   
)

◆ DEFINE_LOG_CATEGORY_STATIC()

DEFINE_LOG_CATEGORY_STATIC ( LogCameraShake  ,
Warning  ,
All   
)

Variable Documentation

◆ GCameraShakeDebugInfoRecordLimitCVar

TAutoConsoleVariable< float > GCameraShakeDebugInfoRecordLimitCVar(TEXT("r.CameraShakeDebug.InfoRecordLimit"), 2, TEXT("How many seconds to keep while recording camera shake debug info (defaults to 2 seconds)")) ( TEXT("r.CameraShakeDebug.InfoRecordLimit")  ,
,
TEXT("How many seconds to keep while recording camera shake debug info (defaults to 2 seconds)")   
)

◆ GCameraShakeDebugLargeGraphCVar

TAutoConsoleVariable< bool > GCameraShakeDebugLargeGraphCVar(TEXT("r.CameraShakeDebug.LargeGraph"), false, TEXT("Draws larger graphs for camera shake debug info")) ( TEXT("r.CameraShakeDebug.LargeGraph")  ,
false  ,
TEXT("Draws larger graphs for camera shake debug info"  
)

◆ GShowCameraShakeDebugCVar

TAutoConsoleVariable< bool > GShowCameraShakeDebugCVar(TEXT("r.CameraShakeDebug"), false, TEXT("Show extra debug info for camera shakes (requires `showdebug CAMERA`)")) ( TEXT("r.CameraShakeDebug")  ,
false  ,
TEXT("Show extra debug info for camera shakes (requires `showdebug CAMERA`)")   
)

◆ GShowCameraShakeDebugLocationCVar

TAutoConsoleVariable< bool > GShowCameraShakeDebugLocationCVar(TEXT("r.CameraShakeDebug.Location"), true, TEXT("Whether to show camera shakes' location modifications (defaults to true)")) ( TEXT("r.CameraShakeDebug.Location")  ,
true  ,
TEXT("Whether to show camera shakes' location modifications (defaults to true)")   
)

◆ GShowCameraShakeDebugRotationCVar

TAutoConsoleVariable< bool > GShowCameraShakeDebugRotationCVar(TEXT("r.CameraShakeDebug.Rotation"), true, TEXT("Whether to show camera shakes' rotation modifications (defaults to true)")) ( TEXT("r.CameraShakeDebug.Rotation")  ,
true  ,
TEXT("Whether to show camera shakes' rotation modifications (defaults to true)")   
)