Navigation
API > API/Runtime > API/Runtime/IrisCore > API/Runtime/IrisCore/Iris > API/Runtime/IrisCore/Iris/ReplicationSystem > API/Runtime/IrisCore/Iris/ReplicationSystem/UReplicationSystem
References
| Module | IrisCore |
| Header | /Engine/Source/Runtime/Experimental/Iris/Core/Public/Iris/ReplicationSystem/ReplicationSystem.h |
| Include | #include "Iris/ReplicationSystem/ReplicationSystem.h" |
| Source | /Engine/Source/Runtime/Experimental/Iris/Core/Private/Iris/ReplicationSystem/ReplicationSystem.cpp |
bool SetConnectionFilter
(
FNetRefHandle Handle,
const TBitArray <> & Connections,
UE::Net::ENetFilterStatus ReplicationStatus
)
Remarks
Set which connections the object is allowed to be replicated to. This will cancel the effect of any previous SetFilter or SetConnectionFilter calls on the object. It will also remove the object from any dynamic filters true if the connection filter was properly set, false if not.
Parameters
| Name | Description |
|---|---|
| Handle | A valid handle to a replicated object. |
| Connections | Set bits indicates the connection IDs that the object is allowed or not allowed to be replicated to depending on ReplicationStatus. |
| ReplicationStatus | Whether the set bits in Connections indicate if the object is allowed or not allowed to be replicated to those connections. |