Click or drag to resize

NetSerializerDeserializeT(NetDataReader, T) Method

Reads packet with known type (non alloc variant)

Namespace: LiteNetLib.Utils
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public bool Deserialize<T>(
	NetDataReader reader,
	T target
)
where T : class, new()

Parameters

reader  NetDataReader
NetDataReader with packet
target  T
Deserialization target

Type Parameters

T

Return Value

Boolean
Returns true if packet in reader is matched type
Exceptions
ExceptionCondition
InvalidTypeExceptionT's fields are not supported, or it has no fields
See Also