Skip to content

Commit 4b56901

Browse files
committed
Fixed an issue with Fast Serialization when Interest Management is enabled.
1 parent 34daff6 commit 4b56901

7 files changed

Lines changed: 4 additions & 3 deletions

File tree

Netick/Editor/Netick.CodeGen.dll

0 Bytes
Binary file not shown.
512 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

Netick/Runtime/Netick.Unity.dll

2 KB
Binary file not shown.

Netick/Runtime/Netick.dll

7 KB
Binary file not shown.

Transport/LiteNetLib Transport/LiteNetLibTransportProvider.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@ void INetEventListener.OnConnectionRequest(ConnectionRequest request)
120120
return;
121121
}
122122

123-
request.Data.GetBytes(_connectionBytes, 0, request.Data.AvailableBytes);
124-
bool accepted = NetworkPeer.OnConnectRequest(_connectionBytes, request.Data.AvailableBytes, request.RemoteEndPoint.ToNetickEndPoint());
123+
int len = request.Data.AvailableBytes;
124+
request.Data.GetBytes(_connectionBytes, 0, len);
125+
bool accepted = NetworkPeer.OnConnectRequest(_connectionBytes, len, request.RemoteEndPoint.ToNetickEndPoint());
125126

126127
if (accepted)
127128
request.Accept();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.karrar.netick",
3-
"version": "0.12.82",
3+
"version": "0.12.95",
44
"displayName": "Netick",
55
"description": "A networking solution for Unity",
66
"unity": "2021.3",

0 commit comments

Comments
 (0)