Navigation
API > API/Runtime > API/Runtime/IrisCore > API/Runtime/IrisCore/UNetObjectFactory
Description
Destroy a replicated object when it is detached from the remote authority. A factory is not obligated to destroy the object for exemple if a TearOff is requested or the object is static and should only be hidden.
| Name | DestroyReplicatedObject |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Iris/Core/Public/Iris/ReplicationSystem/NetObjectFactory.h |
| Include Path | #include "Iris/ReplicationSystem/NetObjectFactory.h" |
virtual void DestroyReplicatedObject
(
const FDestroyedContext & Context
)
Parameters
| Name | Remarks |
|---|---|
| Context | Gives access to the instance that should be destroyed along with details on what type of destruction is requested. |