UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FGameTime Struct Reference

#include <GameTime.h>

Public Member Functions

 FGameTime ()
 
 FGameTime (const FGameTime &)=default
 
FGameTimeoperator= (const FGameTime &)=default
 
double GetRealTimeSeconds () const
 
float GetDeltaRealTimeSeconds () const
 
double GetWorldTimeSeconds () const
 
float GetDeltaWorldTimeSeconds () const
 
float GetTimeDilation () const
 
bool IsPaused () const
 

Static Public Member Functions

static ENGINE_API FGameTime GetTimeSinceAppStart ()
 
static FGameTime CreateUndilated (double InRealTimeSeconds, float InDeltaRealTimeSeconds)
 
static FGameTime CreateDilated (double InRealTimeSeconds, float InDeltaRealTimeSeconds, double InWorldTimeSeconds, float InDeltaWorldTimeSeconds)
 

Detailed Description

Contains all the timings of a gaming frame, to handle pause and time dilation (for instance bullet time) of the world.

Constructor & Destructor Documentation

◆ FGameTime() [1/2]

FGameTime::FGameTime ( )
inline

◆ FGameTime() [2/2]

FGameTime::FGameTime ( const FGameTime )
default

Member Function Documentation

◆ CreateDilated()

static FGameTime FGameTime::CreateDilated ( double  InRealTimeSeconds,
float  InDeltaRealTimeSeconds,
double  InWorldTimeSeconds,
float  InDeltaWorldTimeSeconds 
)
inlinestatic

◆ CreateUndilated()

static FGameTime FGameTime::CreateUndilated ( double  InRealTimeSeconds,
float  InDeltaRealTimeSeconds 
)
inlinestatic

◆ GetDeltaRealTimeSeconds()

float FGameTime::GetDeltaRealTimeSeconds ( ) const
inline

Returns frame delta time in seconds with no adjustment for time dilation and pause.

◆ GetDeltaWorldTimeSeconds()

float FGameTime::GetDeltaWorldTimeSeconds ( ) const
inline

Returns frame delta time in seconds adjusted by e.g. time dilation.

◆ GetRealTimeSeconds()

double FGameTime::GetRealTimeSeconds ( ) const
inline

Returns time in seconds since level began play, but IS NOT paused when the game is paused, and IS NOT dilated/clamped.

◆ GetTimeDilation()

float FGameTime::GetTimeDilation ( ) const
inline

Returns how much world time is slowed compared to real time.

◆ GetTimeSinceAppStart()

FGameTime FGameTime::GetTimeSinceAppStart ( )
static

◆ GetWorldTimeSeconds()

double FGameTime::GetWorldTimeSeconds ( ) const
inline

Returns time in seconds since level began play, but IS paused when the game is paused, and IS dilated/clamped.

◆ IsPaused()

bool FGameTime::IsPaused ( ) const
inline

Returns whether the world time is paused.

◆ operator=()

FGameTime & FGameTime::operator= ( const FGameTime )
default

The documentation for this struct was generated from the following files: