UKismetSystemLibrary::GetGameTimeInSeconds

Get the current game time, in seconds. This stops when the game is paused and is affected by slomo.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetSystemLibrary.h

Include

#include "Kismet/KismetSystemLibrary.h"

Source

/Engine/Source/Runtime/Engine/Private/KismetSystemLibrary.cpp

Syntax

static float GetGameTimeInSeconds
(
    UObject * WorldContextObject
)

Remarks

Get the current game time, in seconds. This stops when the game is paused and is affected by slomo.

Parameters

Parameter

Description

WorldContextObject

World context

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss