Can we Set PhotonNetwork.NickName after Joining a room? And/Or even after Leaving Lobby?

Options

I have been using Photon for my projects, and till now I have been setting the  PhotonNetwork.NickName value before joining any room, while being in a lobby. And all works great with this method.

But in my current project, there's a need where I need to set the  PhotonNetwork.NickName after joining a room. The lobby condition can be changed - In my current case, player leaveLobby as soon as player joins a room. I even tried without leaving lobby, still won't work.

A little help on this would be appreciated.

Thank You.

Answers

  • Tobias
    Options

    Joining or leaving a Photon Lobby does not have any effect on the NickName.

    You can set the NickName before you join a room or after you joined one but not after join/create and before the OnJoined callback (there is a transition time in which the client switches servers, etc).