We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9abffa9 commit cf5d039Copy full SHA for cf5d039
com.unity.netcode.gameobjects/Runtime/Core/NetworkObject.cs
@@ -3140,10 +3140,7 @@ public void Deserialize(FastBufferReader reader)
3140
// Try to begin reading the remaining bytes
3141
if (!reader.TryBeginRead(readSize))
3142
{
3143
- if (NetworkManager.Singleton.LogLevel <= LogLevel.Error)
3144
- {
3145
- NetworkLog.LogError("Could not deserialize NetworkObject: Reading past the end of the buffer.");
3146
- }
+ throw new OverflowException("Could not deserialize SceneObject: Reading past the end of the buffer");
3147
}
3148
3149
if (HasTransform)
0 commit comments