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

概要 - デバイス ID でログインする - (Unity モジュール)

Last updated on October 23, 2024

Introduction

You need to authenticate players for them to access the features of AccelByte Gaming Services (AGS). This module teaches you how to do this using a device ID.

Prerequisites

In order to complete this module, you will need:

  • To have completed the following module:

  • The Byte Wars tutorialmodules branch checked out in your local Byte Wars Unity project repository.

  • To have configured the AccelByte's SDKs. Refer to Install the AGS Game SDK to learn more.

  • To have force enabled this module. You can do this by adding the following code to the Assets/Resources/Modules/TutorialModuleConfig.json file:

    {
    "enableModulesOverride": true,
    "forceEnabledModules": ["AuthEssentials"],
    "forceDisabledOtherModules" : true
    }
    注記

    You will need to close and reopen Unity for the module override to take effect.

Learning objectives

At the end of this module, you will know how to implement device ID logins.

Preview

At the end of this module, your project will look like the images below.

Login success preview gif Unity Byte Wars device ID

Login failed preview gif Unity Byte Wars device ID