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.
◆ 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
-
| assetInstanceID | The asset instance ID to create the key/value for |
| key | Key(name) |
| value | The value of the key |
| onComplete | onComplete Action for handling the response of type LootLockerAssetDefaultResponse |
| forPlayerWithUlid | Optional : 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
-
| assetInstanceID | The asset instance ID of the asset instance you want to delete from the current Players Inventory |
| onComplete | onComplete Action for handling the response of type LootLockerResponse |
| forPlayerWithUlid | Optional : 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
-
| assetInstanceID | The asset instance ID to delete the key/value for |
| keyValueID | ID of the key/value, can be obtained when creating the key or by using GetAllKeyValuePairsToAnInstance() |
| onComplete | onComplete Action for handling the response of type LootLockerAssetDefaultResponse |
| forPlayerWithUlid | Optional : 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
-
| assetInstanceID | The asset instance ID to get the key/value-pairs for |
| keyValueID | The ID of the key-value to get. Can be obtained when creating a new key/value-pair or with GetAllKeyValuePairsToAnInstance() |
| onComplete | onComplete Action for handling the response of type LootLockerGetSingleKeyValuePairsResponse |
| forPlayerWithUlid | Optional : 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
-
| onComplete | onComplete Action for handling the response of type LootLockerGetAllKeyValuePairsResponse |
| forPlayerWithUlid | Optional : 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
-
| assetInstanceID | The asset instance ID to get the key/value-pairs for |
| onComplete | onComplete Action for handling the response of type LootLockerAssetDefaultResponse |
| forPlayerWithUlid | Optional : 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
-
| assetInstanceID | The asset instance ID of the loot box |
| onComplete | onComplete Action for handling the response of type LootLockerInspectALootBoxResponse |
| forPlayerWithUlid | Optional : 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
-
| assetInstanceID | The asset instance ID of the loot box |
| onComplete | onComplete Action for handling the response of type LootLockerOpenLootBoxResponse |
| forPlayerWithUlid | Optional : 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
-
| assetInstanceID | The asset instance ID to update the key/value for |
| keyValueID | ID of the key/value, can be obtained when creating the key or by using GetAllKeyValuePairsToAnInstance() |
| value | The new value of the key |
| key | The new key(name) of the key |
| onComplete | onComplete Action for handling the response of type LootLockerAssetDefaultResponse |
| forPlayerWithUlid | Optional : 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
-
| assetInstanceID | The asset instance ID to update the key/value for |
| key | Name of the key to update |
| value | The new value of the key |
| onComplete | onComplete Action for handling the response of type LootLockerAssetDefaultResponse |
| forPlayerWithUlid | Optional : 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
-
| assetInstanceID | The asset instance ID to create the key/value for |
| data | A Dictionary<string, string> for multiple key/values |
| onComplete | onComplete Action for handling the response of type LootLockerAssetDefaultResponse |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
| 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.
|
| |