Skip to main content

Unity.Netcode.VariableSerialization-1

Inheritance#

System.Object

NetworkVariableBase

NetworkVariableSerialization\<T>

NetworkList\<T>

NetworkVariable\<T>

Implements#

System.IDisposable

Inherited Members#

NetworkVariableBase.Initialize(NetworkBehaviour)

NetworkVariableBase.DefaultReadPerm

NetworkVariableBase.DefaultWritePerm

NetworkVariableBase.Name

NetworkVariableBase.ReadPerm

NetworkVariableBase.WritePerm

NetworkVariableBase.SetDirty(Boolean)

NetworkVariableBase.ResetDirty()

NetworkVariableBase.IsDirty()

NetworkVariableBase.CanClientRead(UInt64)

NetworkVariableBase.CanClientWrite(UInt64)

NetworkVariableBase.WriteDelta(FastBufferWriter)

NetworkVariableBase.WriteField(FastBufferWriter)

NetworkVariableBase.ReadField(FastBufferReader)

NetworkVariableBase.ReadDelta(FastBufferReader, Boolean)

NetworkVariableBase.Dispose()

System.Object.Equals(System.Object)

System.Object.Equals(System.Object, System.Object)

System.Object.GetHashCode()

System.Object.GetType()

System.Object.MemberwiseClone()

System.Object.ReferenceEquals(System.Object, System.Object)

System.Object.ToString()

Syntax#
[Serializable]
public abstract class NetworkVariableSerialization<T> : NetworkVariableBase, IDisposable where T : struct
Type Parameters#
NameDescription
T

Constructors#

NetworkVariableSerialization(NetworkVariableReadPermission, NetworkVariableWritePermission)#

Declaration#
protected NetworkVariableSerialization(NetworkVariableReadPermission readPerm = NetworkVariableReadPermission.Everyone, NetworkVariableWritePermission writePerm = NetworkVariableWritePermission.Server)
Parameters#
TypeNameDescription
NetworkVariableReadPermissionreadPerm
NetworkVariableWritePermissionwritePerm

Methods#

Read(FastBufferReader, out T)#

Declaration#
protected static void Read(FastBufferReader reader, out T value)
Parameters#
TypeNameDescription
FastBufferReaderreader
Tvalue

Write(FastBufferWriter, in T)#

Declaration#
protected static void Write(FastBufferWriter writer, in T value)
Parameters#
TypeNameDescription
FastBufferWriterwriter
Tvalue

Implements#

System.IDisposable