FSlateApplicationBase::GetCurrentTime

Gets Slate's current cached real time.

Windows
MacOS
Linux

Override Hierarchy

FSlateApplicationBase::GetCurrentTime()

FSlateApplication::GetCurrentTime()

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Application/SlateApplicationBase.h

Include

#include "Application/SlateApplicationBase.h"

Syntax

const double GetCurrentTime() const

Remarks

Gets Slate's current cached real time.

This time value is updated every frame right before we tick widgets and is the recommended time value to use for UI animations and transitions, as opposed to calling FPlatformTime::Seconds() (which is generally slower)

Returns

The current Slate real time in seconds

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