File tree Expand file tree Collapse file tree
com.unity.netcode.gameobjects/Runtime/Core Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3011,15 +3011,14 @@ public void Serialize(FastBufferWriter writer)
30113011 writer . WriteValue ( OwnerObject . GetSceneOriginHandle ( ) ) ;
30123012 }
30133013
3014- // Synchronize instantiation data, NetworkVariables and NetworkBehaviours
3015- var bufferSerializer = new BufferSerializer < BufferSerializerWriter > ( new BufferSerializerWriter ( writer ) ) ;
3016-
30173014 if ( HasInstantiationData )
30183015 {
30193016 writer . WriteValueSafe ( OwnerObject . InstantiationData . Length ) ;
30203017 writer . WriteBytesSafe ( OwnerObject . InstantiationData ) ;
30213018 }
30223019
3020+ // Synchronize NetworkVariables and NetworkBehaviours
3021+ var bufferSerializer = new BufferSerializer < BufferSerializerWriter > ( new BufferSerializerWriter ( writer ) ) ;
30233022 OwnerObject . SynchronizeNetworkBehaviours ( ref bufferSerializer , TargetClientId ) ;
30243023 }
30253024
You can’t perform that action at this time.
0 commit comments