GetRankDataStore||doc136340

September 20, 2022

Format

Engine.DataService:GetRankDataStore(space)

Describe

Get the leaderboard data under the specified space name. If there is no leaderboard data in the space, create a new leaderboard data.

parameter

Variable name Type Describe
space string Space name

Return value

Type Describe
RankDataStore Leaderboard data

Code example

Get leaderboard data used to store "player combat power" data.

local playerPowerData = Engine.DataService:GetRankDataStore("PlayerPower")