Export

Namespace: UAssetAPI.ExportTypes

UObject resource type for objects that are contained within this package and can be referenced by other packages.

public class Export : System.ICloneable

Inheritance ObjectExport
Implements ICloneable

Fields

ObjectName

The name of the UObject represented by this resource.

public FName ObjectName;

OuterIndex

Location of the resource for this resource's Outer (import/other export). 0 = this resource is a top-level UPackage

public FPackageIndex OuterIndex;

ClassIndex

Location of this export's class (import/other export). 0 = this export is a UClass

public FPackageIndex ClassIndex;

SuperIndex

Location of this export's parent class (import/other export). 0 = this export is not derived from UStruct

public FPackageIndex SuperIndex;

TemplateIndex

Location of this export's template (import/other export). 0 = there is some problem

public FPackageIndex TemplateIndex;

ObjectFlags

The object flags for the UObject represented by this resource. Only flags that match the RF_Load combination mask will be loaded from disk and applied to the UObject.

public EObjectFlags ObjectFlags;

SerialSize

The number of bytes to serialize when saving/loading this export's UObject.

public long SerialSize;

SerialOffset

The location (into the FLinker's underlying file reader archive) of the beginning of the data for this export's UObject. Used for verification only.

public long SerialOffset;

ScriptSerializationStartOffset

The location (relative to SerialOffset) of the beginning of the portion of this export's data that is serialized using tagged property serialization. Serialized into packages using tagged property serialization as of ObjectVersionUE5.SCRIPT_SERIALIZATION_OFFSET (5.4).

public long ScriptSerializationStartOffset;

ScriptSerializationEndOffset

The location (relative to SerialOffset) of the end of the portion of this export's data that is serialized using tagged property serialization. Serialized into packages using tagged property serialization as of ObjectVersionUE5.SCRIPT_SERIALIZATION_OFFSET (5.4)

public long ScriptSerializationEndOffset;

bForcedExport

Was this export forced into the export table via OBJECTMARK_ForceTagExp?

public bool bForcedExport;

bNotForClient

Should this export not be loaded on clients?

public bool bNotForClient;

bNotForServer

Should this export not be loaded on servers?

public bool bNotForServer;

PackageGuid

If this object is a top level package (which must have been forced into the export table via OBJECTMARK_ForceTagExp), this is the GUID for the original package file. Deprecated

public Guid PackageGuid;

IsInheritedInstance

public bool IsInheritedInstance;

PackageFlags

If this export is a top-level package, this is the flags for the original package

public EPackageFlags PackageFlags;

bNotAlwaysLoadedForEditorGame

Should this export be always loaded in editor game?

public bool bNotAlwaysLoadedForEditorGame;

bIsAsset

Is this export an asset?

public bool bIsAsset;

GeneratePublicHash

public bool GeneratePublicHash;

SerializationBeforeSerializationDependencies

public List<FPackageIndex> SerializationBeforeSerializationDependencies;

CreateBeforeSerializationDependencies

public List<FPackageIndex> CreateBeforeSerializationDependencies;

SerializationBeforeCreateDependencies

public List<FPackageIndex> SerializationBeforeCreateDependencies;

CreateBeforeCreateDependencies

public List<FPackageIndex> CreateBeforeCreateDependencies;

Extras

Miscellaneous, unparsed export data, stored as a byte array.

public Byte[] Extras;

Asset

The asset that this export is parsed with.

public UAsset Asset;

Constructors

Export(UAsset, Byte[])

public Export(UAsset asset, Byte[] extras)

Parameters

asset UAsset

extras Byte[]

Export()

public Export()

Methods

Read(AssetBinaryReader, Int32)

public void Read(AssetBinaryReader reader, int nextStarting)

Parameters

reader AssetBinaryReader

nextStarting Int32

ResolveAncestries(UAsset, AncestryInfo)

Resolves the ancestry of all child properties of this export.

public void ResolveAncestries(UAsset asset, AncestryInfo ancestrySoFar)

Parameters

asset UAsset

ancestrySoFar AncestryInfo

Write(AssetBinaryWriter)

public void Write(AssetBinaryWriter writer)

Parameters

writer AssetBinaryWriter

ReadExportMapEntry(AssetBinaryReader)

public void ReadExportMapEntry(AssetBinaryReader reader)

Parameters

reader AssetBinaryReader

GetExportMapEntrySize(UAsset)

public static long GetExportMapEntrySize(UAsset asset)

Parameters

asset UAsset

Returns

Int64

WriteExportMapEntry(AssetBinaryWriter)

public void WriteExportMapEntry(AssetBinaryWriter writer)

Parameters

writer AssetBinaryWriter

GetAllObjectExportFields(UAsset)

public static MemberInfo[] GetAllObjectExportFields(UAsset asset)

Parameters

asset UAsset

Returns

MemberInfo[]

GetAllFieldNames(UAsset)

public static String[] GetAllFieldNames(UAsset asset)

Parameters

asset UAsset

Returns

String[]

GetExportClassType()

public FName GetExportClassType()

Returns

FName

GetClassTypeForAncestry(UAsset, FName&)

public FName GetClassTypeForAncestry(UAsset asset, FName& modulePath)

Parameters

asset UAsset

modulePath FName&

Returns

FName

GetClassTypeForAncestry(FPackageIndex, UAsset, FName&)

public static FName GetClassTypeForAncestry(FPackageIndex classIndex, UAsset asset, FName& modulePath)

Parameters

classIndex FPackageIndex

asset UAsset

modulePath FName&

Returns

FName

ToString()

public string ToString()

Returns

String

Clone()

public object Clone()

Returns

Object

ConvertToChildExport<T>()

Creates a child export instance with the same export details as the current export.

public T ConvertToChildExport<T>()

Type Parameters

T
The type of child export to create.

Returns

T
An instance of the child export type provided with the export details copied over.