Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FDormantReplicatorHolder
Description
Create an object replicator for the given replicated object and store a reference to it. Does not initialize the Replicator but simply allocates it.
| Name | CreateAndStoreReplicator |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Net/NetDormantHolder.h |
| Include Path | #include "Net/NetDormantHolder.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Net/NetDormantHolder.cpp |
const TSharedRef < FObjectReplicator > & CreateAndStoreReplicator
(
AActor * DormantActor,
UObject * ReplicatedObject,
bool & bOverwroteExistingReplicator
)
Return a reference to the object replicator we created and are now storing.
Parameters
| Name | Remarks |
|---|---|
| DormantActor | The dormant actor that owns the replicated object |
| ReplicatedObject | The object that will be tied to the new ObjectReplicator. |
| bOverwroteExistingReplicator | When it returns true it means we erased an existing replicator. |