mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkIdentity Serialization: explain write index
This commit is contained in:
parent
adb66b427c
commit
bb8412d5e7
@ -930,7 +930,9 @@ internal void OnSerializeAllSafely(bool initialState, NetworkWriter ownerWriter,
|
||||
// observers writer too
|
||||
int startPosition = ownerWriter.Position;
|
||||
|
||||
// write index as byte [0..255]
|
||||
// write index as byte [0..255].
|
||||
// necessary because deserialize may only get data for some
|
||||
// components because not dirty, not owner, etc.
|
||||
ownerWriter.WriteByte((byte)i);
|
||||
|
||||
// serialize into ownerWriter first
|
||||
|
Loading…
Reference in New Issue
Block a user