Navigation
API > API/Runtime > API/Runtime/IrisCore
Various traits that can be set for a FNetSerializer. These traits are typically set via constexpr bool in the declaration of the serializer. Only publicly visible traits are part of the enum.
| Name | UE::Net::ENetSerializerTraits |
| Type | enum |
| Header File | /Engine/Source/Runtime/Experimental/Iris/Core/Public/Iris/Serialization/NetSerializer.h |
| Include Path | #include "Iris/Serialization/NetSerializer.h" |
Syntax
namespace UE
{
namespace Net
{
enum ENetSerializerTraits
{
None = 0U,
IsForwardingSerializer = 1U << 0U,
HasDynamicState = IsForwardingSerializer << 1U,
HasConnectionSpecificSerialization = HasDynamicState << 1U,
HasCustomNetReference = HasConnectionSpecificSerialization << 1U,
UseSerializerIsEqual = HasCustomNetReference << 1U,
HasApply = UseSerializerIsEqual << 1U,
}
}
}
Values
| Name | Remarks |
|---|---|
| None | |
| IsForwardingSerializer | Forwarding serializers need to implement all functions that a serializer may have. |
| HasDynamicState | Serializers in need of dynamic state must implement CloneDynamicState and FreeDynamicState. |
| HasConnectionSpecificSerialization | Connection specific serialization is sometimes required but should be avoided by all means necessary as it prevents sharing of serialized state. |
| HasCustomNetReference | There are net references that need to be gathered via calls to CollectNetReferences. |
| UseSerializerIsEqual | Data replicated using this serializer should use the IsEqual implementation in order to determine whether the data is dirty or not. |
| HasApply | Has an Apply function which should be used when applying its dequantized data to another instance. |