IDesktopPlatform::TryGetEngineVersion

Attempt to get the engine version from the supplied engine root directory.

Windows
MacOS
Linux

References

Module

DesktopPlatform

Header

/Engine/Source/Developer/DesktopPlatform/Public/IDesktopPlatform.h

Include

#include "IDesktopPlatform.h"

Syntax

bool TryGetEngineVersion
(
    const FString & RootDir,
    FEngineVersion & OutVersion
)

Remarks

Attempt to get the engine version from the supplied engine root directory. Tries to read the contents of Engine/Build/Build.version, but scrapes information from the Engine/Source/Launch/Resources/Version.h if it fails.

Returns

true if the engine version was successfully obtained

Parameters

Parameter

Description

RootDir

Root directory for the engine to check

OutVersion

Engine version obtained from identifier

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