How could I check the player count of a certain session
The whole answer can be found below.
Try Our
Documentation
Please check if you can find an answer in our extensive documentation on Fusion.
Join Us
on Discord
Meet and talk to our staff and the entire Photon-Community via Discord.
Read More on
Stack Overflow
Find more information on Stack Overflow (for Circle members only).
How could I check the player count of a certain session
Cullis_Wullis
2022-10-30 16:50:55
How would I do this?
Comments
Isaac_Augusto
2022-10-31 12:58:33
Hi,
If you're connected to a lobby and are looking at the session list received, you can use SessionInfo.PlayerCount
. If you're connected to a session, you can use Runner.ActivePlayer
to receive a IEnumerable with all the current active players.
Isaac Augusto
Photon Fusion Team
Back to top