Unity sample app
Notice. This is still an unstable version and is only used for early testing.
- Unity 2022.3.20f1
- Visual Studio 2022 for Windows
- Xcode for macOS
- Enable Android support in Unity Hub
-
Clone the repo to your local machine.
git clone https://github.com/livekit-examples/unity-example.git
Clone unity sdk (draft for android support) to the same directory
git clone https://github.com/livekit/client-sdk-unity.git cd client-sdk-unity && python install.py
-
Open the project with Unity 2022.3.20f1 and add the livekit unity sdk package.
Open Package Manager -> Add package from disk -> select the client-sdk-unity folder
-
Test the sample app.
Edit unity-example/LivekitUnitySampleApp/Assets/Scenes/LivekitSamples.cs
public class LivekitSamples : MonoBehaviour { public string url = "your url"; public string token = "your token"; ..... }
Run the app in Unity Editor or build it to your device.