Change Public room to Private (Fusion)
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
-
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
andRunner.SessionInfo.IsVisible = false;
. It worth mentioning that this can only be done from the host/server.-----
Isaac Augusto
Photon Fusion Team
0