ITargetPlatform::IsRunningPlatform

Checks whether this platform is the platform that's currently running.

Windows
MacOS
Linux

References

Module

TargetPlatform

Header

/Engine/Source/Developer/TargetPlatform/Public/Interfaces/ITargetPlatform.h

Include

#include "Interfaces/ITargetPlatform.h"

Syntax

bool IsRunningPlatform() const

Remarks

Checks whether this platform is the platform that's currently running.

For example, when running on Windows, the Windows ITargetPlatform will return true and all other platforms will return false.

Returns

true if this platform is running, false otherwise.

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