メインコンテンツまでスキップ

Steam ログイン方法を設定する - Steam でログインする - (Unity モジュール)

Last updated on June 23, 2025
備考

This tutorial module does not apply to WebGL builds due to limitations in Steamworks.

Set up Steam login method in the Admin Portal

In this tutorial, you will learn how to add a Steam login method in the AccelByte Gaming Services (AGS) Admin Portal.

  1. Log in to the Admin Portal and go to your game namespace dashboard.

  2. Go to select Game Setup > 3rd Party Configuration > Auth & Account Linking and click Add New.

  3. Click Steam SDK and fill out the form that appears:

  • App ID: Your game's App ID from the Steam partner dashboard (see Applications from Steam).
  • Steam Web API Key: The Web API Key acquired from Steam (see Steam Web API Documentation).
  • Redirect URI: Enter http://127.0.0.1
  1. When redirected to the Login Platform Configuration page, verify its Status is Active. If it's not, activate it by clicking Activate once, and again on the pop-up to confirm.

Configure Steam

In this tutorial, you will learn how to enable Steamworks SDK.

  1. Open the project in the Unity Editor. Then, open the TutorialModuleConfig.json file located at Assets/Resources/Modules/TutorialModuleConfig.json. This file is a configuration specific to Byte Wars.

  2. In the TutorialModuleConfig.json file, add your Steam App ID to the steamAppId field. If you want the game to automatically log in using Steam when it starts, you can set the autoLogin option to true.

    {
    ...
    "singlePlatformAuth": "Steam",
    "steamConfiguration": {
    "steamAppId": "replace with your steam app id",
    "autoLogin": false
    }
    ...
    }
    備考

    Byte Wars uses the values from TutorialModuleConfig.json to configure Steamworks.NET.
    To learn more about working with Steamworks.NET in Unity, check out the Steamworks.NET documentation.

  3. Next, open the Steam client on your computer.

  4. Go back to the Unity Editor and make sure to open the MainMenu.unity located in the Assets/Scenes/MainMenu.unity.

  5. Then, play the game from the Unity Editor. If you've launched the Steam client and configured the App ID correctly, you will see the following log:

    [Steamworks.NET] SteamAPI_Init() success