Change Public room to Private (Fusion)
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).
Change Public room to Private (Fusion)
dillingermm
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!
Comments
Isaac_Augusto
2023-01-03 12:26:06
Hey,
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