Netcode for GameObjects is a high-level netcode SDK that provides networking capabilities to GameObject/MonoBehaviour workflows within Unity and sits on top of underlying transport layer.
MIT License
2.15k
stars
435
forks
source link
fix: synchronizing connected clients additively loaded scenes only when server #3133
This fixes the issue when starting NetworkManager as server only, connecting one or more clients, and then loading a scene and the in-scene placed NetworkObjects do not get synchronized with the clients (but once the scene is loaded late joining clients do get synchronized).
Fixed: In-scene NertworkObject synchronization issue when loading a scene with currently connected clients connected to a session created by a NetworkManager started as a server (i.e. not as a host).
Fixed: Issue where a NetworkManager started as a server would not add itself as an observer to in-scene placed NetworkObjects instantiated and spawned by a scene loading event.
Testing and Documentation
Includes updates to existing integration tests.
No documentation changes or additions were necessary.
This fixes the issue when starting NetworkManager as server only, connecting one or more clients, and then loading a scene and the in-scene placed NetworkObjects do not get synchronized with the clients (but once the scene is loaded late joining clients do get synchronized).
MTTB-625
Changelog
NertworkObject
synchronization issue when loading a scene with currently connected clients connected to a session created by aNetworkManager
started as a server (i.e. not as a host).NetworkManager
started as a server would not add itself as an observer to in-scene placedNetworkObject
s instantiated and spawned by a scene loading event.Testing and Documentation