> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PlayFab for Unity (v2 Unified)

> Get started with PlayFab for Unity (v2 Unified), the single UPM package that replaces v1 Services, Multiplayer, and Party plugins for Unity.

PlayFab for Unity (v2 Unified) is the next-generation Unity integration built on top of the [PlayFab Unified SDK](/services/playfab/sdks/unified-sdk/overview). It's distributed as a single Unity Package Manager (UPM) package.

This package replaces the three separate v1 Unity packages: the [PlayFab Unity SDK](/services/playfab/sdks/unity3d) (Services REST wrappers), the [v1 PlayFab Multiplayer for Unity plugin](/services/playfab/multiplayer/lobby/lobby-matchmaking-sdks/multiplayer-unity-overview), and the [v1 PlayFab Party for Unity plugin](/services/playfab/multiplayer/networking/party-unity-overview).

<Info>
  Use PlayFab for Unity (v2 Unified) for all new projects. You can't use v1 and v2 together in the same project.
</Info>

## Key benefits

PlayFab for Unity brings the modern architecture of the Unified SDK to Unity:

* **Single package**: One UPM install brings PlayFab Core, Services, Multiplayer (Lobby and Matchmaking), and Party together. You no longer need separate Services, Multiplayer, and Party packages.

* **Unified authentication**: When you sign in with `PFAuthentication`, it produces a single entity handle that Services and Multiplayer reuse. There's no per-component `SetEntityToken` call or per-call `PlayFabAuthenticationContext` to track.

* **Automatic token management**: The background process refreshes entity tokens. You no longer need to manually sign in again.

* **Consistent async model**: Services and Multiplayer calls use the Unified SDK async pattern, replacing the v1 `(request, onSuccess, onError)` callback pairs.

* **Native HTTP and serialization**: The same native `libHttpClient` that powers the Unified SDK across engines serves HTTP traffic. `PFHttpConfig` configures it. v1 pluggable transports (`ITransportPlugin`) and JSON serializers (`ISerializerPlugin`) are no longer needed.

* **GDK-aware editor tooling**: Your installed Microsoft Gaming Development Kit (GDK) automatically resolves native binaries. Switch between installed GDK editions from the **PlayFab → Change GDK** menu.

## Supported platforms

PlayFab for Unity officially supports:

* **Windows** (XBOX store and other PC storefronts)
* **XBOX** (One, Series S|X, Cloud)

Support for other platforms is coming soon.

## Getting started

Setup, installation, prerequisites, sample scenes, and troubleshooting information are available in the GitHub repository:

**[PlayFab Unity SDK on GitHub](https://github.com/PlayFab/PlayFabSDK_Unity)**

## Related resources

* [PlayFab Unified SDK overview](/services/playfab/sdks/unified-sdk/overview)
* [v1 PlayFab Unity3D SDK](/services/playfab/sdks/unity3d)
* [v1 PlayFab Multiplayer for Unity plugin](/services/playfab/multiplayer/lobby/lobby-matchmaking-sdks/multiplayer-unity-overview)
* [v1 PlayFab Party for Unity plugin](/services/playfab/multiplayer/networking/party-unity-overview)


## Related topics

- [PlayFab Unified SDK](/services/playfab/sdks/unified-sdk/overview.md)
- [Migrate from PlayFab standalone SDK v1 to Unified SDK v2](/services/playfab/sdks/unified-sdk/migrating-from-v1.md)
- [PlayFab for Unreal Engine Overview](/services/playfab/sdks/unified-unreal/overview.md)
- [PlayFab SDK Products](/services/playfab/sdks/sdk-products.md)
- [PlayFab Unified SDK Quickstart Setup](/services/playfab/sdks/unified-sdk/quickstart-setup.md)
