Prerequisites
- A PlayFlow account with a project (new organizations start on the Free plan).
- A project API key. You can create both server keys (
pf_...) and client keys (pfclient_...) from the API Keys section of your project. - Unity 2021.3 LTS or newer.
Key Features
- In-Editor Management: A user-friendly editor window to manage your PlayFlow account, server builds, and deployments without leaving Unity.
- C# API Clients: High-level C# APIs for interacting with PlayFlow’s services, including Game Servers, Lobbies, and Matchmaking.
- Simplified Workflow: Designed to streamline the development process for multiplayer games, from prototyping to production.
- Example Scenes: Comes with clear examples to help you get started quickly.
Installation
To get started with the PlayFlow Unity SDK, please follow our complete installation guide.Installation Guide
Follow the steps to install the SDK using the Unity Package Manager.
Initial Setup
Once imported, the SDK needs to be configured with your PlayFlow API Key.- Find the
PlayFlowLobbyManagerV2component in your scene, or add it to a new GameObject. - In the Inspector for
PlayFlowLobbyManagerV2, enter your API Key. You can find this in the API Keys section of your PlayFlow project. - That’s it! The manager will now be able to authenticate with PlayFlow services.
Game Servers
Learn how to programmatically start, stop, and manage your dedicated game server instances.
Lobbies
Create and manage lobbies for players to congregate before a match.
Matchmaking
Use skill-based matchmaking to find suitable opponents for your players.