Class UserNetworkVariableSerialization<T>
This class is used to register user serialization with NetworkVariables for types that are serialized via user serialization, such as with FastBufferReader and FastBufferWriter extension methods. Finding those methods isn't achievable efficiently at runtime, so this allows users to tell NetworkVariable about those extension methods (or simply pass in a lambda)
Inherited Members
Namespace: Unity.Netcode
Assembly: Unity.Netcode.Runtime.dll
Syntax
public class UserNetworkVariableSerialization<T>
Type Parameters
Name | Description |
---|---|
T |
Fields
DuplicateValue
Callback to create a duplicate of a value, used to check for dirty status.
Declaration
public static UserNetworkVariableSerialization<T>.DuplicateValueDelegate DuplicateValue
Field Value
Type | Description |
---|---|
UserNetworkVariableSerialization<T>.DuplicateValueDelegate |
ReadDelta
Callback to read a delta, applying only select changes to the current value.
Declaration
public static UserNetworkVariableSerialization<T>.ReadDeltaDelegate ReadDelta
Field Value
Type | Description |
---|---|
UserNetworkVariableSerialization<T>.ReadDeltaDelegate |
ReadValue
Callback to read a value
Declaration
public static UserNetworkVariableSerialization<T>.ReadValueDelegate ReadValue
Field Value
Type | Description |
---|---|
UserNetworkVariableSerialization<T>.ReadValueDelegate |
WriteDelta
Callback to write a delta between two values, based on computing the difference between the previous and current values.
Declaration
public static UserNetworkVariableSerialization<T>.WriteDeltaDelegate WriteDelta
Field Value
Type | Description |
---|---|
UserNetworkVariableSerialization<T>.WriteDeltaDelegate |
WriteValue
Callback to write a value
Declaration
public static UserNetworkVariableSerialization<T>.WriteValueDelegate WriteValue
Field Value
Type | Description |
---|---|
UserNetworkVariableSerialization<T>.WriteValueDelegate |