Navigation
API > API/Runtime > API/Runtime/IrisCore > API/Runtime/IrisCore/UReplicationSystem
Description
Enable or disable a replication condition for a single connection and do the inverse for all other connections. This will affect the replication of properties with conditions that are dependent on this condition. Calling this function will cancel the effect of previous calls to this function with this condition, i.e. only a single connection can have RoleAutonomous set.
| Name | SetReplicationConditionConnectionFilter |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Iris/Core/Public/Iris/ReplicationSystem/ReplicationSystem.h |
| Include Path | #include "Iris/ReplicationSystem/ReplicationSystem.h" |
| Source | /Engine/Source/Runtime/Experimental/Iris/Core/Private/Iris/ReplicationSystem/ReplicationSystem.cpp |
bool SetReplicationConditionConnectionFilter
(
FNetRefHandle Handle,
UE::Net::EReplicationCondition Condition,
uint32 ConnectionId,
bool bEnable
)
true if the condition was successfully set, false if not.
Parameters
| Name | Remarks |
|---|---|
| Handle | A valid handle to a replicated object. |
| Condition | The ReplicationCondition to modify. Only EReplicationCondition::RoleAutonomous is supported. |
| ConnectionId | The ID of the connection to enable or disable the condition for or 0 to disable the condition. |
| bEnable | Whether the the condition should be enabled or disabled for the specified connection. If ConnectionId is zero this parameter is ignored. |