How can count how many user in the room before spawn player?

Options

I want to count how many user in the room before spawn player. It was very easy with Pun2 (PhotonNetwork.CurrentRoom.PlayerCount). How can count? I used Runner.SessionInfo.PlayerCount but not working. It does not count before spawn in the room.

Answers

  • Isaac_Augusto
    edited October 2022
    Options

    Hi,

    Not sure if I understood what you're trying to do, but:

    How many players are active in session (including the local player): Runner.ActivePlayers.Count() linq

    Max clients allowed on session: You to track of this information yourself when you pass it in the StartGamesArg

    -----

    Isaac Augusto

    Photon Fusion Team