Caution: Fraudulent or imitation websites may appear. Only this site is official. Report concerns on our Report Fraud page.
PlayFab is the backend service your VR fangame will use to store player data, handle authentication, manage cosmetics, track stats, and connect with Photon.
This page walks you through the first steps of setting up PlayFab for your project
1. Create a PlayFab Account
Go to the PlayFab website
Sign in with a Microsoft account
Create a new PlayFab Title
Copy your Title ID
Copy your API Endpoint
You will need these values inside Unity.
2. Set Up Your PlayFab Title
Inside your PlayFab dashboard:
Enable API features
Enable client login
Disable unwanted login types (optional)
Set up your player creation rules
Configure your Title Data (optional)
This ensures your game can authenticate players correctly.
3. Install the PlayFab Unity SDK
Open Unity
Go to Window → Package Manager
Install the PlayFab SDK (Unity package)
Import all required files
After importing, you will see a PlayFab Editor window.
4. Connect Unity to Your PlayFab Title
Inside Unity:
Open PlayFab Editor
Log in
Select your Title
Unity will automatically configure your project
This links your game to your PlayFab backend.
5. Test Your First Login
Use a simple login script to confirm everything works:
LoginWithCustomID
LoginWithDeviceID
LoginWithAndroidDeviceID (Quest)
Once login succeeds, you will receive:
PlayFabID
Session ticket
Player profile
This confirms your game is connected
6. Understand the Basic Flow
Every PlayFab operation follows this pattern:
Player logs in
Game requests data (currency, items, stats)
Player plays
Game saves data back to PlayFab
Player quits
Data is stored permanently
This is the foundation of all PlayFab systems.
7. What You Can Do Next
After getting PlayFab connected, you can move on to:
Authentication
Player Data
Virtual Currency
Inventory System
CloudScript
Moderation Tools
Title Data
Analytics
Photon + PlayFab Linking
Each of these has its own subpage.
8. Best Practices for Beginners
Always test login first
Keep your Title ID private
Never expose your secret key in Unity
Use CloudScript for secure operations
Start with simple data (like stats or currency)