Links

Retrieve Collectable Data in Game

The following tutorial assumes you have already set up your game and made your first API calls. To learn how to do that, visit the Getting Started guide.

Retrieve List of Collectables

Unity
LootLockerSDKManager.GetCollectables((response) =>
{
if (response.success)
{
Debug.Log("Successfully received " + response.collectables.Length + " collectables");
}
else
{
Debug.Log("Error receiving collectables");
}
});

Trigger Collectable

Unity
LootLockerSDKManager.CollectItem("Cute_Kitten_Found.Some_group.First", (response) =>
{
if (response.success)
{
Debug.Log("Successfully triggered collectable");
}
else
{
Debug.Log("Error triggering collectable");
}
});