Unity-Technologies / com.unity.netcode.gameobjects

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.09k stars 431 forks source link

fix: Scene network objects are destroyed when cancelling client conne… #2918

Closed NaolShow closed 1 month ago

NaolShow commented 1 month ago

…ction

Those objects aren't spawned when cancelling the connection leading to destroying those objects from the scene when they should not.

Fixes: #2917 regression from 7ab9947

As described in the issue, when cancelling a client connection the network scene objects are destroyed. This fixes the issue, however it might not be the correct fix, I do not know the project's code really well!

Changelog

Testing and Documentation

unity-cla-assistant commented 1 month ago

CLA assistant check
All committers have signed the CLA.

NaolShow commented 1 month ago

Closed fixed in #2923 (thanks!)