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: prevent exception when showing despawned NetworkObject - up port of #3029 #3030
This resolves an issue where a NetworkObject component could be despawned or its GameObject destroyed in the same frame prior to attempting to show it.
Fixed: Issue where the NetworkSpawnManager.HandleNetworkObjectShow could throw an exception if one of the NetworkObject components to show was destroyed during the same frame.
Testing and Documentation
Includes integration test NetworkVisibilityTests.HideShowAndDeleteTest.
No documentation changes or additions were necessary.
Up-port of #3029
This resolves an issue where a
NetworkObject
component could be despawned or itsGameObject
destroyed in the same frame prior to attempting to show it.MTTB-377
fix: #3023
Changelog
NetworkSpawnManager.HandleNetworkObjectShow
could throw an exception if one of theNetworkObject
components to show was destroyed during the same frame.Testing and Documentation
NetworkVisibilityTests.HideShowAndDeleteTest
.