Quickstart
Set up your first PlayFab title and run a sample in minutes
Unity Samples
Complete Unity projects covering authentication, leaderboards, events, and more
Azure Functions
Server-side game logic with PlayFab and Azure Functions integration
Recipes
Drop-in patterns for player retention, monetization, and user acquisition
What’s included
The repository is organized into three main areas:Samples
Complete, runnable projects targeting specific platforms and engines. Each sample demonstrates best-practice usage of one or more PlayFab features.| Sample | Platform | Features covered |
|---|---|---|
| PlayFab Sign-In | Unity | Authentication (email, guest) |
| Space Rumble | Unity | Accounts, leaderboards, CloudScript, events |
| Leaderboards | Unity | Statistics, leaderboard read/write |
| Events | Unity | Player, title, and character events |
| Commerce | Unity / Android | Virtual currency, catalog, in-app purchases |
| Tic Tac Toe | Unity + Azure | Azure Functions, game state, AI logic |
| Messaging / SignalR | C# | Real-time notifications, matchmaking |
Recipes
Focused examples that implement a single common game mechanic using PlayFab building blocks. Each recipe ships with both a Unity 3D package and a JavaScript version.Daily Prize Wheel
Randomized daily reward using virtual currency and drop tables
Progressive Rewards
Escalating login-streak bonuses with CloudScript
Referral Codes
Reward both the referrer and referee with a redeemable code flow
Regenerating Currency
Time-limited play mechanic that slowly refills over time
Cross Promotion
Reward players who participate in multiple of your titles
Prerequisites
Before running any sample you need:- A free PlayFab developer account
- A PlayFab Title (created in Game Manager) — note your Title ID
All samples use the MIT license. See LICENSE for details.
