I'm getting a KeyNotFoundException on the client-side shortly after running StartClient(). The exception is not happening with UNetTransport so I'm suspecting something to do with the PhotonRealtimeTransport.
Reproduction steps:
Create an empty scene and add NetworkManager with PhotonRealtimeTransport.
Add empty gameObject with a NetworkObject component and add as PlayerPrefab in NetworkManager
Either create a build for the client or use ParrelSync.
Start a Host then start a Client
See the exception in the console. I've posted the full stack from below as well.
I'm getting a
KeyNotFoundException
on the client-side shortly after runningStartClient()
. The exception is not happening withUNetTransport
so I'm suspecting something to do with thePhotonRealtimeTransport
.Reproduction steps:
NetworkManager
withPhotonRealtimeTransport
.NetworkObject
component and add asPlayerPrefab
inNetworkManager
Details: Unity Version:
2021.2.1f1
Netcode:1.0.0-pre.3
Photon transport:2.0.0
- commit hash: b32ffdd4648a5f0359f3c9e4ffabaa6e7c91d8aa