Navigation
API > API/Runtime > API/Runtime/IrisCore > API/Runtime/IrisCore/UNetObjectFactory
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void DetachedFromReplication
(
const FDestroyedContext& Context |
Iris/ReplicationSystem/NetObjectFactory.h | ||
virtual void DetachedFromReplication
(
const FDetachContext& Context, |
Callback triggered when a replicated object is no longer replicated on the client. | Iris/ReplicationSystem/NetObjectFactory.h |
DetachedFromReplication(const FDestroyedContext &)
| 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
)
DetachedFromReplication(const FDetachContext &, const TOptional< FSubObjectDetachContext > &)
Description
Callback triggered when a replicated object is no longer replicated 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 FDetachContext & Context,
const TOptional < FSubObjectDetachContext > & SubObjectContext
)
Parameters
| Name | Remarks |
|---|---|
| Context | Gives access to the instance that is detached along with details on why the object is no longer replicated |
| SubObjectContext | Optional structure passed only when the detached object is a subobject. Gives access to the root object of the subobject. |