Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
PlayFab for Unity (v2 Unified) is the next-generation Unity integration built on top of the PlayFab Unified SDK. 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 REST wrappers), the v1 PlayFab Multiplayer for Unity plugin, and the v1 PlayFab Party for Unity plugin.
Important
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-componentSetEntityTokencall or per-callPlayFabAuthenticationContextto 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
libHttpClientthat powers the Unified SDK across engines serves HTTP traffic.PFHttpConfigconfigures 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: