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.
Unity
LootLockerSDKManager.GetCollectables((response) =>
{
if (response.success)
{
Debug.Log("Successfully received " + response.collectables.Length + " collectables");
}
else
{
Debug.Log("Error receiving collectables");
}
});
Unity
LootLockerSDKManager.CollectItem("Cute_Kitten_Found.Some_group.First", (response) =>
{
if (response.success)
{
Debug.Log("Successfully triggered collectable");
}
else
{
Debug.Log("Error triggering collectable");
}
});
Last modified 4mo ago