Navigation
API > API/Runtime > API/Runtime/IrisCore > API/Runtime/IrisCore/Iris > API/Runtime/IrisCore/Iris/ReplicationSystem
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UNetObjectFactory
References
| Module | IrisCore |
| Header | /Engine/Source/Runtime/Experimental/Iris/Core/Public/Iris/ReplicationSystem/NetObjectFactory.h |
| Include | #include "Iris/ReplicationSystem/NetObjectFactory.h" |
Syntax
UCLASS (MinimalAPI, Transient, Abstract)
class UNetObjectFactory : public UObject
Remarks
The class is responsible for creating the header representing specific replicated object types. Also responsible for instantiating the UObject from a replicated header.
Variables
| Type | Name | Description | |
|---|---|---|---|
| UObjectReplicationBridge * | Bridge | ||
| UE::Net::FNetObjectFactoryId | FactoryId |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TUniquePtr< UE::Net::FNetObjectCreationHeader > | CreateAndDeserializeHeader
(
const UE::Net::FCreationHeaderContext& Context |
Create a new header and deserialize it's data from the incoming bitstream | |
| TUniquePtr< UE::Net::FNetObjectCreationHeader > | CreateAndFillHeader
(
UE::Net::FNetRefHandle Handle |
Create the correct header type for a given replicated object and fill the header with the information representing it. | |
| TUniquePtr< UE::Net::FNetObjectCreationHeader > | CreateHeader
(
UE::Net::FNetRefHandle Handle, |
Creates the header containing all information required to instantiate a remote version of the object represented by the handle. | |
| void | Deinit () |
||
| void | Init
(
UE::Net::FNetObjectFactoryId InId, |
||
| FInstantiateResult | InstantiateReplicatedObjectFromHeader
(
const FInstantiateContext& Context, |
Create or bind a replicated object from the received creation header. | |
| void | OnDeinit () |
||
| void | OnInit () |
||
| void | PostInit
(
const FPostInitContext& Context |
Optional callback triggered after we applied the initial replicated properties to the instantiated object. | |
| void | PostInstantiation
(
const FPostInstantiationContext& Context |
Optional callback triggered at the end of the instantiation process and before any replicated properties were applied. | |
| TUniquePtr< UE::Net::FNetObjectCreationHeader > | ReadHeader
(
UE::Net::FNetRefHandle Handle, |
Deserialize the header data received and return a valid header | |
| bool | SerializeHeader
(
const UE::Net::FCreationHeaderContext& Context, |
Serialize the header into the bitstream | |
| bool | WriteHeader
(
UE::Net::FNetRefHandle Handle, |
Serializes a valid header so it can be replicated to remote connections |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FInstantiateContext | Contextual information to use during instantiation | ||
| FInstantiateResult | Result of the instantiate request | ||
| FPostInitContext | Contextual information to use in the PostInit callback | ||
| FPostInstantiationContext | Contextual information to use in the PostInstantiation callback |