The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on PUN.

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).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Possible to limit max players and max messages per room from Dashboard.

r_projects
2018-02-16 09:39:44

Looking to limit the max players and max messages per room from the Dashboard.
Seems like this should be an option in the Dashboard but could not find it.

I don't really want to set up self-hosted servers as this is the only real limitations I need to set.

Comments

r_projects
2018-02-16 12:49:55

I take that back after looking at the pricing structure. I am interested in using the self-hosted servers, but how would I go about locking down the max messages per room and also and max players.

Also if this can be done with the dashboard somehow that would be very helpful for testing.

[Deleted User]
2018-02-20 09:40:39

Hi @r_projects,

you can set the MaxPlayers value using the Room Options when creating the room. There is no need to use the Dashboard for this task.

RoomOptions roomOptions = new RoomOptions();  
roomOptions.MaxPlayers = 4; // for example  
PhotonNetwork.CreateRoom("Room Name", roomOptions, null);

I'm not sure about a message limit, but I think there is no way to limit this because the amount of messages sent is determined by the number of players in the room and how many 'updates' they are sending.

r_projects
2019-07-19 17:24:14

Ok thanks for that.

Back to top