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.15k stars 435 forks source link

fix: player prefab null exception when using prefab hash via connection approval #3042

Closed NoelStephensUnity closed 2 months ago

NoelStephensUnity commented 2 months ago

This PR resolves the issue where if you do not have a player prefab assigned but do have prefab hash provided in the connection approval process it would cause and exception to be thrown (due to the lack of the player prefab assignment). (needs to be backported to v1.x)

fix: #3032

Changelog

Testing and Documentation