LootLocker Unity SDK 8.0.0
Game backend SDK for Unity
Loading...
Searching...
No Matches
Asset Instances

Detailed Description

Access and manage asset instances in the current player's inventory.

When an asset is granted, a unique Asset Instance is created that extends the reference asset with a player-specific Instance ID and mutable state. Instances enter inventory via leaderboard/progression/trigger rewards, Catalog purchases, or default class loadouts. This group covers listing, updating key-value storage per instance, and managing rental states. For the reference catalogue see Assets.

See the LootLocker documentation.

Function Documentation

◆ CreateKeyValuePairForAssetInstances()

static void LootLocker.Requests.LootLockerSDKManager.CreateKeyValuePairForAssetInstances ( int  assetInstanceID,
string  key,
string  value,
Action< LootLockerAssetDefaultResponse >  onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Create a new key/value pair for a specific asset instance.

Parameters
assetInstanceIDThe asset instance ID to create the key/value for
keyKey(name)
valueThe value of the key
onCompleteonComplete Action for handling the response of type LootLockerAssetDefaultResponse
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ DeleteAssetInstanceFromPlayerInventory()

static void LootLocker.Requests.LootLockerSDKManager.DeleteAssetInstanceFromPlayerInventory ( int  assetInstanceID,
Action< LootLockerResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Delete an Asset Instance from the current Player's Inventory.

Parameters
assetInstanceIDThe asset instance ID of the asset instance you want to delete from the current Players Inventory
onCompleteonComplete Action for handling the response of type LootLockerResponse
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ DeleteKeyValuePairForAssetInstances()

static void LootLocker.Requests.LootLockerSDKManager.DeleteKeyValuePairForAssetInstances ( int  assetInstanceID,
int  keyValueID,
Action< LootLockerAssetDefaultResponse >  onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Delete a specific key/value pair for a specific asset instance by key/value-id.

Parameters
assetInstanceIDThe asset instance ID to delete the key/value for
keyValueIDID of the key/value, can be obtained when creating the key or by using GetAllKeyValuePairsToAnInstance()
onCompleteonComplete Action for handling the response of type LootLockerAssetDefaultResponse
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ GetAKeyValuePairByIdForAssetInstances()

static void LootLocker.Requests.LootLockerSDKManager.GetAKeyValuePairByIdForAssetInstances ( int  assetInstanceID,
int  keyValueID,
Action< LootLockerGetSingleKeyValuePairsResponse >  onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Get a specific key/value pair for a specific asset instance.

Parameters
assetInstanceIDThe asset instance ID to get the key/value-pairs for
keyValueIDThe ID of the key-value to get. Can be obtained when creating a new key/value-pair or with GetAllKeyValuePairsToAnInstance()
onCompleteonComplete Action for handling the response of type LootLockerGetSingleKeyValuePairsResponse
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ GetAllKeyValuePairsForAssetInstances()

static void LootLocker.Requests.LootLockerSDKManager.GetAllKeyValuePairsForAssetInstances ( Action< LootLockerGetAllKeyValuePairsResponse >  onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Get all key/value pairs for all asset instances.

Parameters
onCompleteonComplete Action for handling the response of type LootLockerGetAllKeyValuePairsResponse
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ GetAllKeyValuePairsToAnInstance()

static void LootLocker.Requests.LootLockerSDKManager.GetAllKeyValuePairsToAnInstance ( int  assetInstanceID,
Action< LootLockerAssetDefaultResponse >  onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Get all key/value pairs for a specific asset instance.

Parameters
assetInstanceIDThe asset instance ID to get the key/value-pairs for
onCompleteonComplete Action for handling the response of type LootLockerAssetDefaultResponse
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ InspectALootBoxForAssetInstances()

static void LootLocker.Requests.LootLockerSDKManager.InspectALootBoxForAssetInstances ( int  assetInstanceID,
Action< LootLockerInspectALootBoxResponse >  onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Get the drop rates for a loot box asset instance.

Parameters
assetInstanceIDThe asset instance ID of the loot box
onCompleteonComplete Action for handling the response of type LootLockerInspectALootBoxResponse
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ OpenALootBoxForAssetInstances()

static void LootLocker.Requests.LootLockerSDKManager.OpenALootBoxForAssetInstances ( int  assetInstanceID,
Action< LootLockerOpenLootBoxResponse >  onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Open a loot box asset instance.

The loot box will be consumed and the contents will be added to the player's inventory.

Parameters
assetInstanceIDThe asset instance ID of the loot box
onCompleteonComplete Action for handling the response of type LootLockerOpenLootBoxResponse
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ UpdateKeyValuePairByIdForAssetInstances()

static void LootLocker.Requests.LootLockerSDKManager.UpdateKeyValuePairByIdForAssetInstances ( int  assetInstanceID,
int  keyValueID,
string  value,
string  key,
Action< LootLockerAssetDefaultResponse >  onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Update a specific key/value pair for a specific asset instance by key/value-id.

Parameters
assetInstanceIDThe asset instance ID to update the key/value for
keyValueIDID of the key/value, can be obtained when creating the key or by using GetAllKeyValuePairsToAnInstance()
valueThe new value of the key
keyThe new key(name) of the key
onCompleteonComplete Action for handling the response of type LootLockerAssetDefaultResponse
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ UpdateKeyValuePairForAssetInstances()

static void LootLocker.Requests.LootLockerSDKManager.UpdateKeyValuePairForAssetInstances ( int  assetInstanceID,
string  key,
string  value,
Action< LootLockerAssetDefaultResponse >  onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Update a specific key/value pair for a specific asset instance by key.

Parameters
assetInstanceIDThe asset instance ID to update the key/value for
keyName of the key to update
valueThe new value of the key
onCompleteonComplete Action for handling the response of type LootLockerAssetDefaultResponse
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ UpdateOneOrMoreKeyValuePairForAssetInstances()

static void LootLocker.Requests.LootLockerSDKManager.UpdateOneOrMoreKeyValuePairForAssetInstances ( int  assetInstanceID,
Dictionary< string, string >  data,
Action< LootLockerAssetDefaultResponse >  onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Update a specific key/value pair for a specific asset instance.

Data is provided as key/value pairs.

Parameters
assetInstanceIDThe asset instance ID to create the key/value for
dataA Dictionary<string, string> for multiple key/values
onCompleteonComplete Action for handling the response of type LootLockerAssetDefaultResponse
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

Functions

static void LootLocker.Requests.LootLockerSDKManager.GetAllKeyValuePairsForAssetInstances (Action< LootLockerGetAllKeyValuePairsResponse > onComplete, string forPlayerWithUlid=null)
 Get all key/value pairs for all asset instances.
 
static void LootLocker.Requests.LootLockerSDKManager.GetAllKeyValuePairsToAnInstance (int assetInstanceID, Action< LootLockerAssetDefaultResponse > onComplete, string forPlayerWithUlid=null)
 Get all key/value pairs for a specific asset instance.
 
static void LootLocker.Requests.LootLockerSDKManager.GetAKeyValuePairByIdForAssetInstances (int assetInstanceID, int keyValueID, Action< LootLockerGetSingleKeyValuePairsResponse > onComplete, string forPlayerWithUlid=null)
 Get a specific key/value pair for a specific asset instance.
 
static void LootLocker.Requests.LootLockerSDKManager.CreateKeyValuePairForAssetInstances (int assetInstanceID, string key, string value, Action< LootLockerAssetDefaultResponse > onComplete, string forPlayerWithUlid=null)
 Create a new key/value pair for a specific asset instance.
 
static void LootLocker.Requests.LootLockerSDKManager.UpdateOneOrMoreKeyValuePairForAssetInstances (int assetInstanceID, Dictionary< string, string > data, Action< LootLockerAssetDefaultResponse > onComplete, string forPlayerWithUlid=null)
 Update a specific key/value pair for a specific asset instance.
 
static void LootLocker.Requests.LootLockerSDKManager.UpdateKeyValuePairForAssetInstances (int assetInstanceID, string key, string value, Action< LootLockerAssetDefaultResponse > onComplete, string forPlayerWithUlid=null)
 Update a specific key/value pair for a specific asset instance by key.
 
static void LootLocker.Requests.LootLockerSDKManager.UpdateKeyValuePairByIdForAssetInstances (int assetInstanceID, int keyValueID, string value, string key, Action< LootLockerAssetDefaultResponse > onComplete, string forPlayerWithUlid=null)
 Update a specific key/value pair for a specific asset instance by key/value-id.
 
static void LootLocker.Requests.LootLockerSDKManager.DeleteKeyValuePairForAssetInstances (int assetInstanceID, int keyValueID, Action< LootLockerAssetDefaultResponse > onComplete, string forPlayerWithUlid=null)
 Delete a specific key/value pair for a specific asset instance by key/value-id.
 
static void LootLocker.Requests.LootLockerSDKManager.InspectALootBoxForAssetInstances (int assetInstanceID, Action< LootLockerInspectALootBoxResponse > onComplete, string forPlayerWithUlid=null)
 Get the drop rates for a loot box asset instance.
 
static void LootLocker.Requests.LootLockerSDKManager.OpenALootBoxForAssetInstances (int assetInstanceID, Action< LootLockerOpenLootBoxResponse > onComplete, string forPlayerWithUlid=null)
 Open a loot box asset instance.
 
static void LootLocker.Requests.LootLockerSDKManager.DeleteAssetInstanceFromPlayerInventory (int assetInstanceID, Action< LootLockerResponse > onComplete, string forPlayerWithUlid=null)
 Delete an Asset Instance from the current Player's Inventory.