Skip to main content
This tutorial guides you through the steps for logging into PlayFab using Steam through SteamWorks and Unity.

Prerequisites

Before beginning, you should have:

Setting up a PlayFab title with Steam integration

To enable support for Steam authorization, PlayFab requires you to enable the Steam add-on. Go to your Game Manager page:
  1. Select the Add-ons menu item.
  2. In the list of available Add-ons, locate Steam and select the title link:
  1. Enter your App ID.
  2. Enter the Web API Key.
  3. Then select Install Steam.

Setting up a Unity project

Start by downloading the latest release of Steamworks.NET from the Releases page.
  • Get the Unity Package version of the release, and import it into the project.
  • Once you import the package, close Unity.
  • Navigate to the Project root folder.
  • Locate the steam_appid.txt file.
  • Open the file and replace the App ID value with your own.
Re-open Unity and create a new scene. Inside that scene, create a new GameObject called Steam:
  1. Add a SteamManager component to the GameObject. This component is part of Steamworks.Net.
  2. Create and add a SteamScript component to the GameObject.
The following example shows the code for the SteamScript component.

Testing

You may test right inside the editor:
  1. Run the scene and select the Log In button.
  2. The console message should appear after a moment, indicating the authentication result Success!.
Last modified on August 10, 2026