Fetch Metadata In-Game from Multiple Sources
In this How-to, we will fetch all metadata matching a specific key on multiple items.
Prerequisites
A LootLocker account and a created game
Fetching Metadata from multiple sources
When fetching a several metadata, you need to provide 3 things:
A
ulid
: (can be retrieved through the web console or in the SDK's depending on the feature) of the item to fetch metadata forFor example:
01J96M0BX1GGTPP2QDRCBV3FW2
A key: of the desired metadata
For example:
icon
A source type
One of the following: Progression, leaderboard, catalog_item, currency
When fetching metadata by tags, a key will supersede the tag, so if you want to search by tags itβs best to avoid using keys and vice versa. When fetching metadata by tags you will get all metadata on that object with the same corresponding tag.
Conclusion
In this How-to weβve fetched multiple metadata entries that were created in the web console by using tags. Metadata also provides the possibility to fetch a single metadata in game or fetch metadata in game with tags.
Last updated