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

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.

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.

Change Public room to Private (Fusion)

2022-12-22 15:39:46

Hi, Please help us if you know the solution!

We use Fusion for our game. Our game for each session can create room for 4 players (Max Players). But when the game began and 4 players joined the room, the other players can still join the room and pass our max players (4 Players). We want to lock the room when 4 players joined the room, or when 4 players joined the room change our public room to private!

how can I set session info isOpen to false, after creating a network runner? (On Fusion)

I'm try set it to false when four players join the session, but it doesn't work!


2023-01-03 12:26:06


First of all, you can start a session with a max player count, it's a parameter on the StartGameArgs.

You could also close the room with Runner.SessionInfo.IsOpen = false and Runner.SessionInfo.IsVisible = false; . It worth mentioning that this can only be done from the host/server.

Isaac Augusto

Photon Fusion Team

Back to top