Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Modules
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Modules/BuildVersion.h |
| Include | #include "Modules/BuildVersion.h" |
Syntax
class FBuildVersion
Remarks
Stores the version information associated with a build
Variables
| Type | Name | Description | |
|---|---|---|---|
| FString | BranchName | Name of the current branch, with '/' characters escaped as '+' | |
| FString | BuildId | The current build id. | |
| FString | BuildUrl | [Optional] A url to the web page for the build (if it was created by an automated build systme for example) | |
| FString | BuildVersion | The build version string. | |
| int | Changelist | The changelist that the engine is being built from | |
| int | CompatibleChangelist | The changelist that the engine maintains compatibility with | |
| int | IsLicenseeVersion | Whether the changelist numbers are a licensee changelist | |
| int | IsPromotedBuild | Whether the current build is a promoted build, that is, built strictly from a clean sync of the given changelist | |
| int | MajorVersion | The major engine version (4 for UE4) | |
| int | MinorVersion | The minor engine version | |
| int | PatchVersion | The hotfix/patch version |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor. Initializes the structure to empty. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FEngineVersion | Get a compatible engine version object for this build version. | ||
| FString | Get the default path to the build.version file on disk. | ||
| int | Gets the compatible changelist if set, otherwise the default compatible changelist. | ||
| FEngineVersion | Get an engine version object for this build version. | ||
| FString | Get the path to the version file for the current executable. | ||
| bool | TryRead
(
const FString& FileName, |
Try to read a version file from disk | |
| bool | TryReadFromString
(
const FString& Text, |
Try to read version info from data stored in a string. |