Gamebase SDK for Unity 2.76.0 Toast Gamebase Platform

Loading...
Searching...
No Matches

## ◆ SetGameUserData()

static void SetGameUserData | ( | GamebaseRequest.Analytics.GameUserData | gameUserData | ) |
| static

User level information can be transferred to the indicator after game login.

Since
  Added 2.0.0.

Parameters

  gameUserData | Level information of the user received from the game server after login.

Example Usage :

public void SetGameUserDataSample(int userLevel, string channelId, string characterId, string characterClassId)
{
var gameUserData = new GamebaseRequest.Analytics.GameUserData(userLevel);
gameUserData.channelId = channelId;
gameUserData.characterId = characterId;
gameUserData.characterClassId = characterClassId;
Gamebase.Analytics.SetGameUserData(gameUserData);
}
Toast.Gamebase.Gamebase.Analytics.SetGameUserData
static void SetGameUserData(GamebaseRequest.Analytics.GameUserData gameUserData)
User level information can be transferred to the indicator after game login.
Definition Gamebase.cs:3276
Toast.Gamebase.Gamebase.Analytics
The Analytics class can send the game indicator to the Gamebase Server.
Definition Gamebase.cs:3256
Toast.Gamebase.Gamebase
The Gamebase class is core of Gamebase service.
Definition Gamebase.cs:11