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: alternate player spawning no players or networkclient player registration #3122
This resolves the issue where using NetworkObject.InstantiateAndSpawn or NetworkSpawnManager.InstantiateAndSpawn would not properly populate the NetworkSpawnManager.PlayerObjects or the NetworkClient.PlayerObject.
Changelog
Fixed: Issue where spawning a player using NetworkObject.InstantiateAndSpawn or NetworkSpawnManager.InstantiateAndSpawn would not update the NetworkSpawnManager.PlayerObjects or assign the newly spawned player to the NetworkClient.PlayerObject.
Testing and Documentation
Includes integration test updates to NetworkClientAndPlayerObjectTests.ValidatePlayerObjects.
No documentation changes or additions were necessary.
This resolves the issue where using
NetworkObject.InstantiateAndSpawn
orNetworkSpawnManager.InstantiateAndSpawn
would not properly populate theNetworkSpawnManager.PlayerObjects
or theNetworkClient.PlayerObject
.Changelog
NetworkObject.InstantiateAndSpawn
orNetworkSpawnManager.InstantiateAndSpawn
would not update theNetworkSpawnManager.PlayerObjects
or assign the newly spawned player to theNetworkClient.PlayerObject
.Testing and Documentation
NetworkClientAndPlayerObjectTests.ValidatePlayerObjects
.