Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FDormantReplicatorHolder
Description
Iterate over all the stored object replicators and destroy any that are tied to a replicated object that is now considered invalid. This version will decrement the subobject references stored in the networkobject list too.
| Name | CleanupStaleObjects |
| 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 |
void CleanupStaleObjects
(
FNetworkObjectList & NetworkObjectList,
UObject * ReferenceOwner
)
Parameters
| Name | Remarks |
|---|---|
| FNetworkObjectList | The netdriver's network object list |
| ReferenceOwner | The connection owner that is storing those dormant objects |