{ }Blueprint → C++

Unreal Engine 5 · Blueprint → C++

Get World Delta Seconds in Unreal Engine 5 C++UE Docs

Get World Delta Seconds maps to GetWorld()->GetDeltaSeconds() in C++, returning the time in seconds that elapsed during the last frame.

Blueprint node & C++ equivalent

C++
float Delta = GetWorld()->GetDeltaSeconds();

What is World Delta Seconds?

Delta seconds is the duration of the previous frame. Multiplying movement, rotation, or interpolation values by delta time makes them frame-rate independent, so a character moves the same distance per second whether the game runs at 30 or 120 FPS.

The C++ equivalent

Call GetWorld()->GetDeltaSeconds() to read the world's current frame delta. Inside Tick(), prefer the DeltaTime parameter that AActor::Tick(float DeltaTime) already provides, since it is the exact value for that tick and avoids an extra world lookup.

Both give the same per-frame seconds value as a float. Use it anywhere you scale a rate by time, such as Location += Velocity * DeltaSeconds.

Frequently asked questions

How do I get delta time in UE5 C++?+

Call GetWorld()->GetDeltaSeconds(), or use the DeltaTime argument passed into Tick(float DeltaTime) when you are inside a tick function.

Why multiply by delta seconds?+

Multiplying by delta seconds makes motion and interpolation frame-rate independent so behavior stays consistent regardless of the current FPS.

Related Utilities nodes

View all Utilities nodes →