Search Issue Tracker

Won't Fix

Votes

0

Found in [Package]

1.0.17

Issue ID

N4EBUG-75

Regression

No

Badly generated code in NetCode GhostComponentSerializer

Package: Unity Netcode

-

1. What happened
Badly generated code in TestDataSerializer.cs (GhostComponentSerializer template in DOTS NetCode)
In the methods SerializeSnapshot and Deserialize the usage of CopyFromChangeMask does not receive the correct parameters.
E.g. changeMask = GhostComponentSerializer.CopyFromChangeMask(changeMaskData, startOffset + 32, ChangeMaskBits - 32);
It only increments with 32 bits once, and does not increase the increment in succeeding calls.
CalculateChangeMask seems to do this correctly however.

2. How can we reproduce it using the example you attached
Start the editor, use the multiplayer tools on the top to generate generated code (Or simply look on the TestDataSerializer.cs submitted in the report).
Observe the errors in the code.

Note: The developers were able to reproduce locally, but there are no consistent steps and or is impossible to reproduce by CQA, confirming without changing the Description

  1. Resolution Note:

    There are no fixes planned for this Bug

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.