|
|
|
|
|
|
|
|
|
|
A Unity Project Sample showing how to integrate Rooms and Relay into a typical Lobby experience use case. |
|
|
|
|
|
|
|
Features Covered: |
|
|
|
- Lobby Creation |
|
|
|
- Lobby Query |
|
|
|
- Lobby Data Sync |
|
|
|
- Emotes |
|
|
|
- Player Names |
|
|
|
- Player Ready Check State |
|
|
|
- Lobby Join |
|
|
|
- Relay Server Creation |
|
|
|
- Relay Code Generation |
|
|
|
- Relay Server Join |
|
|
|
Features Covered: |
|
|
|
- Lobby Creation |
|
|
|
- Lobby Query |
|
|
|
- Lobby Data Sync |
|
|
|
- Emotes |
|
|
|
- Player Names |
|
|
|
- Player Ready Check State |
|
|
|
- Lobby Join |
|
|
|
- Relay Server Creation |
|
|
|
- Relay Code Generation |
|
|
|
- Relay Server Join |
|
|
|
|
|
|
|
# Service Setup |
|
|
|
** Create an organization. |
|
|
|
|
|
|
![Services Editor](~Documentation/Images/services1.PNG?raw=true) |
|
|
|
|
|
|
|
|
|
|
|
Select your organization from the drop-down, and push **Create Project ID** |
|
|
|
|
|
|
|
Select your organization from the drop-down, and push **Create Project ID**. |
|
|
|
|
|
|
|
In the end your Service window should look like this! |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Lobby: |
|
|
|
We use the lobby service to create a space that our users can join and share data through. |
|
|
|
|
|
|
Create a new Unity Build of the project in the OS of your choice. |
|
|
|
Because the Authentication service creates a unique ID for builds, you will need to host a lobby in Build and join in Editor or vice versa. |
|
|
|
|
|
|
|
1. Start the game, and hit start to enter the Room List, It Queries the rooms service for available Lobbies, there wont be any right now. |
|
|
|
1. Start the game, and hit start to enter the Room List. This Queries the rooms service for available Lobbies, there wont be any right now. |
|
|
|
2 The Create Menu Lets you make a new Lobby |
|
|
|
2 The Create Menu Lets you make a new Lobby. |
|
|
|
For demonstration purposes we also show the Relay Code, which will be passed to all users in the Lobby |
|
|
|
For demonstration purposes we also show the Relay Code, which will be passed to all users in the Lobby. |
|
|
|
|
|
|
|
![Lobby View](~Documentation/Images/tutorial_3_HostGame.png?raw=true) |
|
|
|
|
|
|
|