IncreaseData||doc136350

September 20, 2022

Format

RankDataStore:IncreaseData(key, delta)

Describe

Asynchronously request the value on the key corresponding to the leaderboard data, and set the new value after adding the obtained value to a value into the key.

parameter

Variable name Type Describe
key string key
delta int Added value

Code example

Increase the combat power of a player in the "player combat power" ranking list by 500.

local playerPowerData = Engine.DataService:GetRankDataStore("PlayerPower")
playerPowerData:IncreaseData("Player_A", 500)