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

概要 - 統計データを追跡し表示する - (Unity モジュール)

Last updated on June 12, 2024

Introduction

You can increase player engagement by tracking their statistics (stats) related to performance or skill level, among others. This module will guide you through integrating the AccelByte Gaming Services (AGS) Statistics service into your game to track a player stats.

Prerequisites

In order to complete this module, you will need:

  • To have completed the following module:

    • Login with device ID* The Byte Wars tutorialmodules branch checked out in your local Byte Wars Unity project repository.
  • To force enable this module by adding the following code to the Assets/Resources/Modules/TutorialModuleConfig.json file:

        {
    "enableModulesOverride": true,
    "forceEnabledModules": ["StatsEssentials"],
    "forceDisabledOtherModules" : true
    }

Learning objectives

At the end of this module, you will know how to create and edit player stats, and implement:

  • Querying the stat values and displaying them.
  • Updating the stat value from the game client or server.

Preview

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

Player highest score in Stats Profile Menu preview Unity Byte Wars stat tracking