mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Spawn message: always Traditional
This commit is contained in:
parent
e04122d0de
commit
5097d82707
@ -1368,7 +1368,8 @@ static ArraySegment<byte> CreateSpawnMessagePayload(bool isOwner, NetworkIdentit
|
||||
|
||||
// serialize all components with initialState = true
|
||||
// (can be null if has none)
|
||||
identity.SerializeServer(true, ownerWriter, observersWriter);
|
||||
// SyncMethod doesn't matter for initialState, since everything is included
|
||||
identity.SerializeServer(true, SyncMethod.Traditional, ownerWriter, observersWriter);
|
||||
|
||||
// convert to ArraySegment to avoid reader allocations
|
||||
// if nothing was written, .ToArraySegment returns an empty segment.
|
||||
|
Loading…
Reference in New Issue
Block a user