errors when upgraded photon 2 (help please!)
Options
Comments
-
before i didnt upgrade i didnt get this error0
-
Hi @Federico123,
You can't set UserId or change it after connecting.
Set UserId through PhotonNetwork.UserId before connecting.
Otherwise here is how to set UserId in general.0 -
Hi @Federico123,
You can't set UserId or change it after connecting.
Set UserId through PhotonNetwork.UserId before connecting.
Otherwise here is how to set UserId in general.
Sorry but i forgot one thing.
It's onvoid LoggedIn(string userName, string userId)
0 -
also @JohnTube it worked before i updated but it still in pun 2, i just updated pun 2 because it had a update and that happened, and if i remove
PhotonNetwork.LocalPlayer.UserId
it will always stay disconnected.0 -
Hi @Frederico123,
In PUN Classic, PhotonPlayer.UserId setter is internal.void LoggedIn(string userName, string userId)
Not sure where this is from as it's not Photon code.if i remove
PhotonNetwork.LocalPlayer.UserId
it will always stay disconnected.0