Navigation
API > API/Runtime > API/Runtime/IrisCore
Copyright Epic Games, Inc. All Rights Reserved.
Definitions.
A FNetSerializer is needed for replication support of a certain type. Most types that can be marked as UPROPERTY are already supported. Types that aren't supported or need special support will emit warnings when descriptors are built for a UCLASS, USTRUCT or UFUNCTION. Find below how to implement one.
| Name | UE::Net::EDependentObjectSchedulingHint |
| Type | enum |
| Header File | /Engine/Source/Runtime/Net/Iris/Public/Iris/ReplicationSystem/ReplicationSystemTypes.h |
| Include Path | #include "Iris/ReplicationSystem/ReplicationSystemTypes.h" |
Syntax
namespace UE
{
namespace Net
{
enum EDependentObjectSchedulingHint
{
Default = 0,
ScheduleBeforeParent,
ScheduleBeforeParentIfInitialState,
}
}
}
Values
| Name | Remarks |
|---|---|
| Default | Default behavior, dependent object will be scheduled to replicate if parent is replicated, if the dependent object has not yet been replicated it will be replicated in the same batch as the parent. |
| ScheduleBeforeParent | Dependent object will be scheduled to replicate before parent is replicated, if the dependent has data to send and has not yet been replicated the parent will only be scheduled if they both fit in same packet. |
| ScheduleBeforeParentIfInitialState | Not yet replicated dependent object will behave as ReplicateBeforeParent otherwise it will be scheduled to replicate if the parent is replicated and scheduled after the parent. |