Navigation
API > API/Runtime > API/Runtime/IrisCore > API/Runtime/IrisCore/UReplicationSystem
Description
Queue an attachment for replication with an object. The attachment will be sent when the target is scheduled for replication.
| Name | QueueNetObjectAttachment |
| Type | function |
| Header File | /Engine/Source/Runtime/Net/Iris/Public/Iris/ReplicationSystem/ReplicationSystem.h |
| Include Path | #include "Iris/ReplicationSystem/ReplicationSystem.h" |
| Source | /Engine/Source/Runtime/Net/Iris/Private/Iris/ReplicationSystem/ReplicationSystem.cpp |
bool QueueNetObjectAttachment
(
uint32 ConnectionId,
const UE::Net::FNetObjectReference & TargetRef,
const TRefCountPtr < UE::Net::FNetObjectAttachment > & Attachment
)
Whether the attachment was properly queued or not.
Parameters
| Name | Remarks |
|---|---|
| ConnectionId | A valid connection ID. Only this connection will receive the attachment. |
| TargetRef | A valid FNetObjectReference representing object to replicate the attachment with. |
| Attachment | The attachment to replicate. Note that the attachment's NetObjectReference will be modified based on TargetRef. |