IDesktopPlatform::TryGetEngineVersion

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

Unreal Engine C++ API Reference > Developer > DesktopPlatform > IDesktopPlatform

References

   
Module DesktopPlatform
Header /Engine/Source/Developer/DesktopPlatform/Public/IDesktopPlatform.h
Include #include "IDesktopPlatform.h"
bool TryGetEngineVersion
(
    const [FString](API\Runtime\Core\Containers\FString) & RootDir,
    [FEngineVersion](API\Runtime\Core\Misc\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. true if the engine version was successfully obtained

Parameters

Name Description
RootDir Root directory for the engine to check
OutVersion Engine version obtained from identifier

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library