Navigation
API > API/Runtime > API/Runtime/Core
This object combines all of our version enums into a single easy to use structure which allows us to update older version numbers independently of the newer version numbers.
| Name | FPackageFileVersion |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/UObject/ObjectVersion.h |
| Include Path | #include "UObject/ObjectVersion.h" |
Syntax
struct FPackageFileVersion
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| UObject/ObjectVersion.h | |||
FPackageFileVersion
(
int32 UE4Version, |
UObject/ObjectVersion.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FileVersionUE4 | int32 | UE4 file version | UObject/ObjectVersion.h | |
| FileVersionUE5 | int32 | UE5 file version | UObject/ObjectVersion.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool IsCompatible
(
const FPackageFileVersion& Other |
Returns true if this object is compatible with the FPackageFileVersion passed in as the parameter. | UObject/ObjectVersion.h | |
void Reset() |
Set all versions to the default state | UObject/ObjectVersion.h | |
int32 ToValue() |
Returns the highest valid version number which is considered to be the 'true' version number | UObject/ObjectVersion.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FPackageFileVersion CreateUE4Version
(
int32 Version |
Creates and returns a FPackageFileVersion based on a single EUnrealEngineObjectUEVersion and no other versions. | UObject/ObjectVersion.h | |
static FPackageFileVersion CreateUE4Version
(
EUnrealEngineObjectUE4Version Version |
UObject/ObjectVersion.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
EUnrealEngineObjectUE4Version Version |
UE4 version comparisons | UObject/ObjectVersion.h | |
bool operator!=
(
EUnrealEngineObjectUE5Version Version |
UE5 version comparisons | UObject/ObjectVersion.h | |
bool operator!=
(
const FPackageFileVersion& Other |
FPackageFileVersion comparisons | UObject/ObjectVersion.h | |
bool operator==
(
const FPackageFileVersion& Other |
FPackageFileVersion comparisons | UObject/ObjectVersion.h | |
bool operator>=
(
EUnrealEngineObjectUE4Version Version |
UE4 version comparisons | UObject/ObjectVersion.h | |
bool operator>=
(
EUnrealEngineObjectUE5Version Version |
UE5 version comparisons | UObject/ObjectVersion.h |