Increase buffer size NetworkList

I have to pass a lot of players data in a NetworkList.
All works with low data, but when i increes the variables in the struct i recive this error:

OverflowException: Writing past the end of the buffer
Unity.Netcode.NetworkList`1[T].WriteDelta (Unity.Netcode.FastBufferWriter writer) (at Library/PackageCache/com.unity.netcode.gameobjects@1.0.0-pre.5/Runtime/NetworkVariable/Collections/NetworkList.cs:125)

is there any way to increase the buffer size?

This is an on-going issue which has been mentioned several times. I’ve created a test project that reproduces the issue and attached it to a bug report so hopefully that will be picked up and the problem fixed.

1 Like

there is no work around?

You could limit the amount you add to the list in one go, that would likely work.

Btw I did bug this and apparently it’s fixed already, but I think there’s a block on merging it into a release (someone from Unity would have to clarify this).