OnJoinedLobby() isn't called after first login for the session

"Called on entering a lobby on the Master Server."

"OnJoinedLobby() or OnConnectedToMaster() are called when PUN is ready"

The callback works after failing to join a room or every other time it's supposed to. Everything else seems to work if I wait a few seconds to enter lobby. However, the point is -- OnJoinedLobby is never called on init!

Am I missing something? :pensive: autojoinlobby is true


  • Hi @xblade724,

    Sorry for the delayed response.

    Do you still encounter this issue?

    If so please try to log client state changes in PUN and see why OnJoinedLobby is not firing when client is in state ClientState.JoinedLobby.
    Or send us a tiny repro project by email.
  • Hey @JohnTube -- it was a Unity "collab" bug -- they randomly like to change the lobby join options. Gahh... lol.

    Anyway, just in case someone asks the same thing -- ask if they use collab in Unity services!
  • I don't understand how Unity collab has anything to do with Photon but I'm glad you got it working.
  • xblade724xblade724
    edited June 23
    > I don't understand how Unity collab has anything to do with Photon

    In our case, everything: Collab is still in it's early phase and enjoys changing the PhotonServerSettings randomly - several times, actually - for whatever reason. In this case, the autoJoinLobby setting keeps turning itself back off (we want it on).
  • Ah I see! Thanks for clarifying this.
Sign In or Register to comment.