Skip to content

Use Catalogs In-Game

This how-to lists Catalogs and their items, then makes a purchase against a Catalog listing from your game.

Prerequisites

List Catalogs

LootLockerSDKManager.ListCatalogs((response) =>
{
if(!response.success)
{
Debug.Log("error: " + response.errorData.message);
Debug.Log("request ID: " + response.errorData.request_id);
return;
}
});

See the Reference Documentation for the full response.

List Catalog Items

LootLockerSDKManager.ListCatalogItems(catalogKey, 10, "", (response) =>
{
if(!response.success)
{
Debug.Log("error: " + response.errorData.message);
Debug.Log("request ID: " + response.errorData.request_id);
return;
}
});

See the Reference Documentation for the full response.

Buy Catalog Items

string walletID = "";
LootLockerCatalogItemAndQuantityPair[] items = { };
LootLockerSDKManager.LootLockerPurchaseCatalogItems(walletID, items, (response) =>
{
if(!response.success)
{
Debug.Log("error: " + response.errorData.message);
Debug.Log("request ID: " + response.errorData.request_id);
return;
}
});

See the Reference Documentation for the full response.

Conclusion

You've listed Catalogs and their items, and purchased a Catalog listing from your game. Next, review LootLocker's full feature set to decide which other features to implement.