Navigation
API > API/Runtime > API/Runtime/IrisCore > API/Runtime/IrisCore/UNetObjectFactory
Description
Callback triggered when a replicated object is no longer relevant on the client. This is where a factory would destroy dynamic objects, reset stable objects or put objects back in a pool. Note that this callback is called on remotes (clients) only.
| Name | DetachedFromReplication |
| Type | function |
| Header File | /Engine/Source/Runtime/Net/Iris/Public/Iris/ReplicationSystem/NetObjectFactory.h |
| Include Path | #include "Iris/ReplicationSystem/NetObjectFactory.h" |
virtual void DetachedFromReplication
(
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. |