![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <BuildVersion.h>
Public Member Functions | |
| CORE_API | FBuildVersion () |
| CORE_API int | GetEffectiveCompatibleChangelist () const |
| Gets the compatible changelist if set, otherwise the default compatible changelist. | |
| CORE_API FEngineVersion | GetEngineVersion () const |
| Get an engine version object for this build version. | |
| CORE_API FEngineVersion | GetCompatibleEngineVersion () const |
| Get a compatible engine version object for this build version. | |
Static Public Member Functions | |
| static CORE_API FString | GetDefaultFileName () |
| Get the default path to the build.version file on disk. | |
| static CORE_API FString | GetFileNameForCurrentExecutable () |
| Get the path to the version file for the current executable. | |
| static CORE_API bool | TryRead (const FString &FileName, FBuildVersion &OutVersion) |
| static CORE_API bool | TryReadFromString (const FString &Text, FBuildVersion &OutVersion) |
Public Attributes | |
| int | MajorVersion |
| int | MinorVersion |
| int | PatchVersion |
| int | Changelist |
| int | CompatibleChangelist |
| int | IsLicenseeVersion |
| int | IsPromotedBuild |
| FString | BranchName |
| FString | BuildId |
| FString | BuildVersion |
| FString | BuildUrl |
Stores the version information associated with a build
| FBuildVersion::FBuildVersion | ( | ) |
Default constructor. Initializes the structure to empty.
| FEngineVersion FBuildVersion::GetCompatibleEngineVersion | ( | ) | const |
Get a compatible engine version object for this build version.
|
static |
Get the default path to the build.version file on disk.
| int FBuildVersion::GetEffectiveCompatibleChangelist | ( | ) | const |
Gets the compatible changelist if set, otherwise the default compatible changelist.
| FEngineVersion FBuildVersion::GetEngineVersion | ( | ) | const |
Get an engine version object for this build version.
|
static |
Get the path to the version file for the current executable.
|
static |
Try to read a version file from disk
| FileName | Path to the version file |
| OutVersion | The version information |
|
static |
Try to read version info from data stored in a string.
| Text | The version info stored in string form |
| OutVersion | The version information |
| FString FBuildVersion::BranchName |
Name of the current branch, with '/' characters escaped as '+'
| FString FBuildVersion::BuildId |
The current build id. This will be generated automatically whenever engine binaries change if not set in the default Engine/Build/Build.version.
| FString FBuildVersion::BuildUrl |
[Optional] A url to the web page for the build (if it was created by an automated build systme for example)
| FString FBuildVersion::BuildVersion |
The build version string.
| int FBuildVersion::Changelist |
The changelist that the engine is being built from
| int FBuildVersion::CompatibleChangelist |
The changelist that the engine maintains compatibility with
| int FBuildVersion::IsLicenseeVersion |
Whether the changelist numbers are a licensee changelist
| int FBuildVersion::IsPromotedBuild |
Whether the current build is a promoted build, that is, built strictly from a clean sync of the given changelist
| int FBuildVersion::MajorVersion |
The major engine version (4 for UE4)
| int FBuildVersion::MinorVersion |
The minor engine version
| int FBuildVersion::PatchVersion |
The hotfix/patch version