Search Issue Tracker
By Design
Votes
0
Found in
5.4.0b20
Issue ID
808515
Regression
No
[NetworkWriter] NetworkWriter.Write always takes values from the start of the source array since offset affects target position
Steps to reproduce:
1. Open attached project "808515.zip"
2. Open scene "repro"
3. Run it
4. In console notice comparison of NetworkWriter and BinaryWriter results after Write.
Actual result: NetworkWriter always takes values from the beginning of the source array -> offset is used when putting values to targetArray.
Expected result: Offset is used when selecting value from sourceArray.
The problem which occurs due to this behavior is that there's no way to write middle of the sourceArray to targetArray (since values are always taken from the start) unless you make additional copy of sourceArray.
Reproduced with: 5.2.4f1, 5.3.5p7, 5.4.0b24, 5.5.0a2
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Joint Physics result in unexpected behaviors when used for articulated vehicles like buses or trucks
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts which worked with TMP Font Asset Creator
Add comment