CustomVersion

Namespace: UAssetAPI

A custom version. Controls more specific serialization than the main engine object version does.

public class CustomVersion : System.ICloneable

Inheritance ObjectCustomVersion
Implements ICloneable

Fields

Name

public FString Name;

Key

public Guid Key;

FriendlyName

public string FriendlyName;

Version

public int Version;

IsSerialized

public bool IsSerialized;

GuidToCustomVersionStringMap

Static map of custom version GUIDs to the object or enum that they represent in the Unreal Engine. This list is not necessarily exhaustive, so feel free to add to it if need be.

public static Dictionary<Guid, string> GuidToCustomVersionStringMap;

UnusedCustomVersionKey

A GUID that represents an unused custom version.

public static Guid UnusedCustomVersionKey;

Constructors

CustomVersion(String, Int32)

Initializes a new instance of the CustomVersion class given an object or enum name and a version number.

public CustomVersion(string friendlyName, int version)

Parameters

friendlyName String
The friendly name to use when initializing this custom version.

version Int32
The version number to use when initializing this custom version.

CustomVersion(Guid, Int32)

Initializes a new instance of the CustomVersion class given a custom version GUID and a version number.

public CustomVersion(Guid key, int version)

Parameters

key Guid
The GUID to use when initializing this custom version.

version Int32
The version number to use when initializing this custom version.

CustomVersion()

Initializes a new instance of the CustomVersion class.

public CustomVersion()

Methods

GetCustomVersionFriendlyNameFromGuid(Guid)

Returns the name of the object or enum that a custom version GUID represents, as specified in CustomVersion.GuidToCustomVersionStringMap.

public static string GetCustomVersionFriendlyNameFromGuid(Guid guid)

Parameters

guid Guid
A GUID that represents a custom version.

Returns

String
A string that represents the friendly name of the corresponding custom version.

GetCustomVersionGuidFromFriendlyName(String)

Returns the GUID of the custom version that the object or enum name provided represents.

public static Guid GetCustomVersionGuidFromFriendlyName(string friendlyName)

Parameters

friendlyName String
The name of a custom version object or enum.

Returns

Guid
A GUID that represents the custom version

SetIsSerialized(Boolean)

public CustomVersion SetIsSerialized(bool val)

Parameters

val Boolean

Returns

CustomVersion

Clone()

public object Clone()

Returns

Object