PUN to PUN 2 upgrade issue
Options
Comments
-
Hi @jgame_ops,
Thank you for choosing Photon!PhotonNetwork.OnEventCall
is removed in PUN2.
You have two options:
1. usePhotonNetwork.NetworkingClient.EventReceived(EventData)
instead.
2. useIOnEventCallback.OnEvent(EventData)
. You need to subscribe the event callback though as explained here.
In PUN2, both options will trigger the callback for all events and not only custom events (custom == event code < 200.
Also, the signature changed but you can get everything fromEventData
.
We will add this to the "Migration Notes".0 -
Thank you. Yes, it's not mentioned in the migration notes.0