> For the complete documentation index, see [llms.txt](https://docs.viverse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.viverse.com/developer-tools/unity.md).

# Unity

- [VIVERSE Unity SDK](https://docs.viverse.com/developer-tools/unity/viverse-unity-sdk.md): Current VIVERSE C# SDK for Unity games. Use this SDK for authentication, cloud save, multiplayer, leaderboards, profiles, and avatars in Unity.
- [Unity login](https://docs.viverse.com/developer-tools/unity/unity-login-routing.md): Unity login uses AuthManager in the VIVERSE Unity SDK. Do not call checkAuth or loginWithWorlds from Unity game code, and do not create a .jslib.
- [Unity cloud save](https://docs.viverse.com/developer-tools/unity/unity-storage-routing.md): Unity cloud save uses CloudSaveClient in the VIVERSE Unity SDK. Do not call the JavaScript Storage SDK from Unity game code, and do not create a .jslib.
- [Unity leaderboards](https://docs.viverse.com/developer-tools/unity/unity-leaderboard-routing.md): Unity leaderboards use LeaderboardClient in the VIVERSE Unity SDK. Do not call uploadLeaderboardScore from Unity game code, and do not create a .jslib.
- [C# ADS](https://docs.viverse.com/developer-tools/unity/unity-ads.md): Add mid-roll and rewarded ads to a Unity WebGL game on VIVERSE with the VIVERSE Ad SDK Unity package. Covers setup, cooldowns, pausing, and rewards.
- [Legacy Unity SDK (v0.96)](https://docs.viverse.com/developer-tools/unity/legacy-unity-sdk.md): Retired VIVERSE Unity SDK v0.96 examples. New Unity projects use the current VIVERSE Unity SDK for C#.
- [Unity Cloud Save example — legacy](https://docs.viverse.com/developer-tools/unity/legacy-unity-sdk/unity-cloud-minimal-example.md): Legacy VIVERSE Unity SDK v0.96 example. CloudSaveService is retired. Use CloudSaveClient in the VIVERSE Unity SDK for C#.
- [Unity Login example — legacy](https://docs.viverse.com/developer-tools/unity/legacy-unity-sdk/unity-login-and-authentication-minimal-example.md): Legacy VIVERSE Unity SDK v0.96 example. LoginManager is retired. Use AuthManager in the VIVERSE Unity SDK for C#.
- [Unity Leaderboard example — legacy](https://docs.viverse.com/developer-tools/unity/legacy-unity-sdk/unity-leaderboard-minimal-example.md): Legacy VIVERSE Unity SDK v0.96 example. LeaderboardService is retired. Use LeaderboardClient in the VIVERSE Unity SDK for C#.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.viverse.com/developer-tools/unity.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
