Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Net > API/Runtime/Engine/Net/FDormantReplicatorHolder
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Net/NetDormantHolder.h |
| Include | #include "Net/NetDormantHolder.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Net/NetDormantHolder.cpp |
const TSharedRef< FObjectReplicator > & CreateAndStoreReplicator
&40;
AActor &42; DormantActor,
UObject &42; ReplicatedObject,
bool & bOverwroteExistingReplicator
&41;
Remarks
Create an object replicator for the given replicated object and store a reference to it. Does not initialize the Replicator but simply allocates it. Return a reference to the object replicator we created and are now storing.
Parameters
| Name | Description |
|---|---|
| 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. |