FSlateApplication::GetCurrentTime

Gets Slate's current cached real time.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

FSlateApplicationBase::GetCurrentTime()

FSlateApplication::GetCurrentTime()

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Framework/Application/SlateApplication.h

Include

#include "Framework/Application/SlateApplication.h"

Syntax

virtual 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