Inventory
Player inventory are a list of assets the player owns. Assets can be gifted or refunded

Retrieve Inventory in Game

To retrieve the inventory of player in game use the following SDK code
Unity
1
LootLockerSDKManager.GetInventory((response) =>
2
{
3
if (response.success)
4
{
5
Debug.Log("Successfully retrieved player inventory: " + response.inventory.Length);
6
} else
7
{
8
Debug.Log("Error getting player inventory");
9
}
10
});
Copied!

Gift an Asset

Gifting is the ability to grant a specific Asset to a player directly through the LootLocker Management Console.
To gift an Asset to a player, click the Give Asset button in the Player Manager interface. Search for and select an Asset from the popup Asset list. This will immediately grant the player the Asset. A list of all granted Assets can be found in the Orders tab in the Player Manager interface.

Refund an Order

Refunds can be used in case a player purchases an Asset unintentionally or needs to be refunded their purchase for other reasons. Refunding an Order in LootLocker is an easy and simple process.
To refund an Order, navigate to the Inventory tab in the Player Manager interface. Find the Asset in question and use the Refund button to refund the Asset. This will immediately refund the purchased Assets and return the Currency to the player’s wallet. If the player purchased an Asset Package, you will need to refund all Assets from that package for the Currency to be returned to the player's wallet.
Only purchased Assets can be refunded. Assets granted through other LootLocker systems cannot be refunded.
Last modified 1mo ago