ITargetPlatform::GetPlatformOrdinal

Get unique integer identifier for this platform.

Windows
MacOS
Linux

Override Hierarchy

ITargetPlatform::GetPlatformOrdinal()

FTargetPlatformBase::GetPlatformOrdinal()

References

Module

TargetPlatform

Header

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

Include

#include "Interfaces/ITargetPlatform.h"

Syntax

int32 GetPlatformOrdinal() const

Remarks

Get unique integer identifier for this platform.

The implementation will assign an ordinal to each target platform at startup, assigning a value of 0, 1, 2, etc in order to make the ordinals usable as array / bit mask indices.

Returns

int32 A unique integer which may be used to identify target platform during the current session only (note: not stable across runs).

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