GetGlobalDataStore||doc136339

September 20, 2022

Format

Engine.DataService:GetGlobalDataStore(space)

Describe

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

parameter

Variable name Type Describe
space string Space name

Return value

Type Describe
GlobalDataStore Global data

Code example

Gets the global data used to store message board information.

local messageBoardData = Engine.DataService:GetGlobalDataStore("MessageBoard")