GitHub e942019f | 4 年前 | |
---|---|---|
Assets | 4 年前 | |
Packages | 4 年前 | |
ProjectSettings | 4 年前 | |
~Documentation/Images | 4 年前 | |
README.md | 4 年前 |
README.md
Lobby Rooms
com.unity.services.samples.lobby-rooms
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 Joining
- Relay Service Creation
- Relay Code Generation
- Relay Service Joining
Service Setup
Create an organization.
-
Follow the attached guide to set up your cloud organization: Organization Tutorial
-
In the project, navigate to Edit => Project Settings => Services
-
Select your organization from the drop-down, and push Create Project ID
Rooms:
COMING SOON, ROOMS API URL
Relay Setup:
COMING SOON, RELAY API URL
-
Navigate to https://dashboard.unity3d.com/landing
-
Follow the steps until you hit "Relay On" (For this project, you can skip downloading the Transport)
Solo Testing
1. Press Start to enter the Lobby Menu.
2. The Join menu Queries the rooms service for available Lobbies, there wont be any right now.
3. The Create Menu Lets you make a new Lobby
4. Enter a Lobby Name of your preference and go!
5. This is the Lobby, It has a room code for you to share with your friends to allow them to join. For demonstration purposes we also show the Relay Code, which will be passed to all users in the Lobby
6. TheLobby holds up to 4 players and will pass the Relay code once all the players are ready.