Skip to content

Game Services

levching edited this page Apr 14, 2020 · 2 revisions

List of Game Services related Ultimate Mobile Playmaker actions.

UM_GameServiceSignIn

Use this action to connect to the Game Service.

Events:

  • Success Event - fires when successfully connected to Game Service.
  • Fail Event - fires when failed to connect to the Game Service.

UM_GetPlayerData

Use this action to get information about a player.

Fileds:

  • Player Id [string] - id of a player.
  • Player name [string] - a name of a player.
  • Player Avatar [Texture] - an avatar of a player.

Events:

  • Success Event - fires when successfully loaded information about a player.
  • Fail Event - fires when failed to load information about a player.

Achievements

UM_GetAchievementsProgress

Use this action to get achievement progress by id.

Fileds:

  • Achievement Id [string] - id of the achievement.
  • Achievement Progress [float] - current achievement progress.

UM_IncrementAchievement

Use this action to increment achievement by the steps for the currently authenticated player.

Fileds:

  • Achievement Id [string] - id of achievement.
  • Progress [Float] - increments the steps of the achievement with the given ID for the currently authenticated player.

Events:

  • Success Event - fires on action success.
  • Fail Event - - fires if action is failed.

UM_ShowAchievementsUI

Use this action to show a player's achievements in default UI.

Leaderboards

UM_GetCurrentPlayerScore

Use this action to get a current player score from the leaderboard, and save the result into the variable.

Fileds:

  • Leaderboard Id [string] - leaderboard id.
  • Span [UM_LeaderboardTimeSpan] - score time span.
  • Collection [UM_LeaderboardCollection] - score collection.
  • Score [Int32] - save the score into the variable.
  • Rank [Int32] - save the rank into the variable.

UM_SubmitScore

Use this action to submit a score for certain Leaderboard.

Fileds:

  • Leaderboard Id [string] - leaderboard in which you will submit a score.
  • Score [Int32] - count of the score which you will submit.

Events:

  • Success Event - fires on action success.
  • Fail Event - - fires if action is failed.

UM_ShowLeaderBoardsUI

Use this action to show a player's achievements in default UI.

UM_ShowLeaderBoardUI

Use this action to show leaderboard UI by a leaderboard id.

Fileds:

  • Leaderboard Id [string] - leaderboard id.
Clone this wiki locally