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)
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.
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).