Navigation
API > API/Runtime > API/Runtime/IrisCore > API/Runtime/IrisCore/UNetObjectFactory
Description
Optional callback triggered when a subobject will be detached from the replication system and potentially destroyed by it's factory in DestroyReplicatedObject. Both static and dynamic subobjects will be passed to this function. Note that this callback is called on remotes (clients) only.
| Name | SubObjectDetachedFromReplication |
| Type | function |
| Header File | /Engine/Source/Runtime/Net/Iris/Public/Iris/ReplicationSystem/NetObjectFactory.h |
| Include Path | #include "Iris/ReplicationSystem/NetObjectFactory.h" |
virtual void SubObjectDetachedFromReplication
(
const FDestroyedContext & Context
)
Parameters
| Name | Remarks |
|---|---|
| Context | Gives access to the subobject about to be destroyed and the root object that owns him. |