Skip to content
ShAdowDev16 edited this page Nov 19, 2024 · 4 revisions

<- Back

Lobby

Creating a room

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:

  1. string roomcode The lobby code of the lobby that will be created.

Examples:

  • MirrorVRManager.CreateLobby("Example Lobby");

Joining a 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:

  1. string roomcode The lobby code of the target lobby to join.

Examples:

  • MirrorVRManager.JoinLobby("Example Lobby");

Join or create 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.

Clone this wiki locally