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 prefabhash connection approval (backport-3042) #3046

Closed NoelStephensUnity closed 2 months ago

NoelStephensUnity commented 2 months ago

Backport of #3042 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).

fix: #3032

Changelog

Testing and Documentation