Navigation
API > API/Runtime > API/Runtime/IrisCore
Custom packagemap implementation used to be able to capture exports such as UObject* references, names and NetTokens from external serialization. Exports written when using this packagemap will be captured in an array and serialized as an index. When reading using this packagemap exports will be read as an index and resolved by picking the corresponding entry from the provided array containing the data associated with the export.
| Name | UIrisObjectReferencePackageMap |
| Type | class |
| Header File | /Engine/Source/Runtime/Net/Iris/Public/Iris/Serialization/IrisObjectReferencePackageMap.h |
| Include Path | #include "Iris/Serialization/IrisObjectReferencePackageMap.h" |
Syntax
UCLASS (Transient, MinimalAPI)
class UIrisObjectReferencePackageMap : public UPackageMap
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UPackageMap → UIrisObjectReferencePackageMap
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| NetTokenResolveContext | UE::Net::FNetTokenResolveContext | Iris/Serialization/IrisObjectReferencePackageMap.h | ||
| PackageMapExportsForReading | UE::Net::FIrisPackageMapExports * | Iris/Serialization/IrisObjectReferencePackageMap.h | ||
| PackageMapExportsForWriting | UE::Net::FIrisPackageMapExports * | Iris/Serialization/IrisObjectReferencePackageMap.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void InitForRead
(
const UE::Net::FIrisPackageMapExports* PackageMapExports, |
Init for read, we need to set the exports from which we are going to read our data. | Iris/Serialization/IrisObjectReferencePackageMap.h | |
void InitForWrite
(
UE::Net::FIrisPackageMapExports* PackageMapExports |
Init for write, all captured exports will be serialized as in index and added to the PackageMapExports for later export using iris. | Iris/Serialization/IrisObjectReferencePackageMap.h |
Overridden from UPackageMap
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const UE::Net::FNetTokenResolveContext * GetNetTokenResolveContext() |
Iris/Serialization/IrisObjectReferencePackageMap.h | ||
| Override SerializeName in order to be able to capture name and serialize them with iris instead. | Iris/Serialization/IrisObjectReferencePackageMap.h | ||
virtual bool SerializeObject
(
FArchive& Ar, |
We override SerializeObject in order to be able to capture object references. | Iris/Serialization/IrisObjectReferencePackageMap.h |