-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Develop into main to publish WebGL quickstart (#1377)
Co-authored-by: Vic Cooper <[email protected]> Co-authored-by: Vic Cooper <[email protected]> Co-authored-by: Noel Stephens <[email protected]>
- Loading branch information
1 parent
3e400cc
commit c609a3d
Showing
5 changed files
with
59 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
id: distributed-authority-webgl | ||
title: Distributed authority and WebGL quickstart | ||
--- | ||
|
||
Use this guide to learn how to create your first [distributed authority](../terms-concepts/distributed-authority.md) Netcode for GameObjects WebGL project. | ||
|
||
This guide is intended as an addition to the [distributed authority general quickstart](distributed-authority-quick-start.md) page, which provides more details about setting up Netcode for GameObjects to use distributed authority. | ||
|
||
:::note Beta feature | ||
Distributed authority is still in beta. During the beta phase, using the distributed authority service provided by the [Multiplayer Services package](https://docs.unity.com/ugs/en-us/manual/mps-sdk/manual) is free. When distributed authority is fully released, [using the service will incur a cost](https://unity.com/products/gaming-services/pricing). | ||
::: | ||
|
||
## Prerequisites | ||
|
||
Before you begin, you need the following general requirements to use the distributed authority network topology: | ||
|
||
- An active Unity account with a valid license. | ||
- The [Unity Hub](https://unity.com/download). | ||
- A supported version of the Unity 6 Editor. Refer to the [Netcode for GameObjects requirements](https://docs-multiplayer.unity3d.com/netcode/current/installation). | ||
- When installing the Editor, make sure to include the __WebGL Build Support_ module. | ||
|
||
You also need the following packages and minimum versions for a WebGL distributed authority session: | ||
|
||
- Netcode for GameObjects version 2.1.1+ | ||
- Unity Transport version 2.3.0+ | ||
- Note that you don't need to create a self-signed certificate to connect to a distributed authority session. | ||
- Multiplayer Services version 1.0.2+ | ||
|
||
## Create and set up your project | ||
|
||
Follow the instructions on the [distributed authority general quickstart](distributed-authority-quick-start.md) page. | ||
|
||
## Build and run with WebGL | ||
|
||
1. Navigate to __File__ > __Build Profiles__ to open the __Build Profiles__ window. Select WebGL as your target platform. | ||
1. From the __Build Profiles__ window, click __Build and Run__. | ||
- Unity launches a small web hosting app to provide the HTTP services required to launch the WebGL application in your browser. | ||
1. Once you have one instance of your WebGL project running, you can copy the URI from your browser and paste it into another window or tab, which creates and connects another player to the same session. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters