中文 | English
Welcome to the Agora Unity WebGL SDK (Community Edition)! 🎉
This project is built and maintained by the community to bring Agora’s real-time engagement features into Unity WebGL. It’s still in open beta, so things are evolving quickly — your feedback and contributions are what make this project grow.
-
This is a community-supported SDK in open beta. Some features might not work perfectly yet, and behavior may differ from the official Unity SDK. Please note that the Agora Support team cannot provide help for issues with this project.
-
This SDK is not compatible with the official Agora Unity SDK version 4.x.
-
If you just want to use the SDK, please don’t clone this repository unless you plan to contribute code. Instead, download the latest package from the Releases page.
-
Before downloading or posting questions, check out the Wiki — it’s the best place to learn how this SDK works and what to expect.
-
Spatial Audio functionality is limited and may not work as expected.
-
If your post isn’t a bug report or improvement request, please use the Discussions section instead.
-
If you find this project helpful, don’t forget to give it a star! ⭐ It’s an easy way to show support for the community members who built and maintain this SDK.
- Unity 2019 and up
- Agora Developer Account
- Knowledge of how to deploy and debug WebGL Application from Unity
- Google Chrome
This section shows you how to prepare, build, and run the sample application.
Before you can build and run any Agora project, you will need to add your AppID to the configuration. Go to your developer account’s project console, create a new AppId or copy the AppId from an existing project.
Note it is important that for a production ready project, you should always use an AppId with token enabled. However, in testing a demo, you will skip this part. Using a testing mode AppId can save time for POC integration.

- It is optional to clone this repository, to obtain the unity package file, go to the release section and download the latest version.
- Import the WebGL SDK package (Unity Editor-> Assets -> Import Package -> Custom Package).
- From Project window, open Asset/AgoraEngine/Demo/Main.scene
- Next, go into your Hierarchy window and select GameController, in the Inspector add your App ID to to the AppID Input field.
This repository includes a set of API-Examples that shows how to use a particular feature. Starting from Refactor 8 release, these demo scene are grouped into the Home Scene for build. Use the AppIDInfo asset to input the AppID (and token if using certificate enabled AppIDs)

You must download the "Complete" package from the Release. The package includes native plugins (Windows/MacOS) that support the Editor environment. Some may confuse on why certain functionalities work differently on Web verses "Editor". That is because the platform differences between the WebGL and the native.
- Go to File > Builds > Platform and switch to platform WebGL
- Make sure AgoraTemplate or AgoraTemplate2020 is chosen under "Resolution and Presentation":
The difference of the templates: use AgoraTemplate2020 for Unity Editor 2020 and up. - You may do Build And Run for Unity version 2020 and up. For other versions, you need to build first, then run it from your local http server.
Please see the Wiki page for more information.
The MIT License (MIT). See doc.
