Class NetworkVariableSerializationTypes
This class contains initialization functions for various different types used in NetworkVariables. Generally speaking, these methods are called by a module initializer created by codegen (NetworkBehaviourILPP) and do not need to be called manually.
There are two types of initializers: Serializers and EqualityCheckers. Every type must have an EqualityChecker
registered to it in order to be used in NetworkVariable; however, not all types need a Serializer. Types without
a serializer registered will fall back to using the delegates in User
Inherited Members
Namespace: Unity.Netcode
Assembly: solution.dll
Syntax
public static class NetworkVariableSerializationTypes
Methods
Name | Description |
---|---|
Initialize |
Registers a managed type that will be checked for equality using the == operator |
Initialize |
Registers a managed type that will be checked for equality using T.Equals() |
Initialize |
Registers an unmanaged type that will be checked for equality using T.Equals() |
Initialize |
Registers an unmanaged type that will be checked for equality using T.Equals() |
Initialize |
Registers an unmanaged type that will be checked for equality using memcmp and only considered equal if they are bitwise equivalent in memory |
Initialize |
Registers an unmanaged type that will be checked for equality using memcmp and only considered equal if they are bitwise equivalent in memory |
Initialize |
Registers a FixedString type that will be serialized through FastBufferReader/FastBufferWriter's FixedString serializers |
Initialize |
Registers a FixedString type that will be serialized through FastBufferReader/FastBufferWriter's FixedString serializers |
Initialize |
Registers a managed type that implements INetworkSerializable and will be serialized through a call to NetworkSerialize |
Initialize |
Registeres an unmanaged type that will be serialized by a direct memcpy into a buffer |
Initialize |
Registeres an unmanaged type that will be serialized by a direct memcpy into a buffer |
Initialize |
Registers an unmanaged type that implements INetworkSerializable and will be serialized through a call to NetworkSerialize |
Initialize |
Registers an unmanaged type that implements INetworkSerializable and will be serialized through a call to NetworkSerialize |