> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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](https://docs.xbox.com/services/playfab/sdks/unified-sdk/overview.md). It's distributed as a single Unity Package Manager (UPM) package.

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

> [!NOTE]
>
> Use PlayFab for Unity (v2 Unified) for all new projects. You can't use v1 and v2 together in the same project.

## 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](https://docs.xbox.com/services/playfab/sdks/unified-sdk/overview.md)
* [v1 PlayFab Unity3D SDK](https://docs.xbox.com/services/playfab/sdks/unity3d.md)
* [v1 PlayFab Multiplayer for Unity plugin](https://docs.xbox.com/services/playfab/multiplayer/lobby/lobby-matchmaking-sdks/multiplayer-unity-overview.md)
* [v1 PlayFab Party for Unity plugin](https://docs.xbox.com/services/playfab/multiplayer/networking/party-unity-overview.md)


## Related topics

- [PlayFab Unified SDK](https://docs.xbox.com/services/playfab/sdks/unified-sdk/overview.md)
- [Migration Guide: PlayFab Standalone SDK (v1) to PlayFab Unified SDK (v2)](https://docs.xbox.com/services/playfab/sdks/unified-sdk/migrating-from-v1.md)
- [PlayFab Unified SDK Quickstart Setup](https://docs.xbox.com/services/playfab/sdks/unified-sdk/quickstart-setup.md)
- [Memory management in the PlayFab Unified SDK](https://docs.xbox.com/services/playfab/sdks/unified-sdk/memory-management.md)
- [Debug tracing in the PlayFab Unified SDK](https://docs.xbox.com/services/playfab/sdks/unified-sdk/debug-trace.md)
