Skip to content

Set Up a Game Config Asset

This how-to uses an Asset to store and distribute game configuration or balancing data your game can read without shipping a new build.

Prerequisites

No prerequisites.

Create a Game Config Context and Asset

Open Context Configuration in the Web Console and create a new Context using the Generic Assets (Simplified) Complexity.

Open Assets in the Web Console, click Add Asset, and create a new Asset — name it GameConfig or similar — using the Context you just created.

Add Configuration Data to the Asset

Click into the Asset and open its Filters & Storage tab. Enter the data you want your game to read:

  • Key/Value Storage: individual settings, for example key gameDifficulty with value Easy.
  • Files: if you manage your game configuration as an external file, upload it here and download and read it from your game.
  • Data Entities: like Key/Value Storage, but for larger structured data, such as an entire JSON file.

Retrieve the Game Config Asset In-Game

Use the Asset's ID with Retrieve Assets by IDs to fetch the Game Config Asset from your game, then use the returned data to configure your game.

Conclusion

You've set up a Game Config Asset and retrieved it in your game. Use the same pattern for any other configuration or balancing data you want to manage without shipping a new build.