Navigation
API > API/Developer > API/Developer/DesktopPlatform > API/Developer/DesktopPlatform/IDesktopPlatform
Description
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.
| Name | TryGetEngineVersion |
| Type | function |
| Header File | /Engine/Source/Developer/DesktopPlatform/Public/IDesktopPlatform.h |
| Include Path | #include "IDesktopPlatform.h" |
bool TryGetEngineVersion
(
const FString & RootDir,
FEngineVersion & OutVersion
)
true if the engine version was successfully obtained
Parameters
| Name | Remarks |
|---|---|
| RootDir | Root directory for the engine to check |
| OutVersion | Engine version obtained from identifier |