ITargetPlatform::IsRunningPlatform

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

Windows
MacOS
Linux

Override Hierarchy

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 WindowsITargetPlatform will return true and all other platforms will return false.

Returns

true if this platform is running, false otherwise.