Navigation
API > API/Runtime > API/Runtime/IrisCore > API/Runtime/IrisCore/UReplicationSystem
Description
Sets a prioritizer for a replicated object which will be used until the next call to SetPrioritizer or SetStaticPriority. An object which never gets a call to either SetPrioritizer or SetStaticPriority will have a priority of 1.0.
| Name | SetPrioritizer |
| 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 SetPrioritizer
(
FNetRefHandle Handle,
UE::Net::FNetObjectPrioritizerHandle PrioritizerHandle
)
true if the prioritizer was successfully set and false if it was not. It can fail for various reasons, such as the prioritizer not supporting the object in question for implementation defined reasons. If the function fails the prioritization of the object is unspecified, it could be using a previous prioritizer or get a default static priority.
Parameters
| Name | Remarks |
|---|---|
| Handle | A valid handle to an object. |
| PrioritizerHandle | A valid handle to a prioritizer, retrieved via a call to GetPrioritizer, or DefaultSpatialNetObjectPrioritizerHandle. |
See Also
-
SetStaticPriority