-
Notifications
You must be signed in to change notification settings - Fork 0
Lobby
WARNING WE STRONGLY RECOMMEND TO NOT USE THIS METHOD, USE MirrorVRManager.JoinOrCreateLobby
INSTEAD
Can cause room duplicates.
Creates a new lobby with a specified code and joins to client to it.
In order to call this method the client needs to be logged in.
Calling this method while in an active lobby will disconnect the client from the lobby.
Arguments:
-
string roomcode
The lobby code of the lobby that will be created.
Examples:
MirrorVRManager.CreateLobby("Example Lobby");
Makes the client join a specific lobby using a code.
The lobby to join must exist.
In order to call this method the client needs to be logged in.
Calling this method while in an active lobby will disconnect the client from the lobby.
Arguments:
-
string roomcode
The lobby code of the target lobby to join.
Examples:
MirrorVRManager.JoinLobby("Example Lobby");
This the most efficient way of creating a lobby and we strongly recommend to use this instead of MirrorVRManager.CreateLobby
.
This will try to create a room but if the lobby with the code already exists the client will join that room.
In order to call this method the client needs to be logged in.
Calling this method while in an active lobby will disconnect the client from the lobby.