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

Detailed Description

Invoke named trigger events that grant server-configured rewards.

Triggers are created in the console and linked to reward payloads (assets, currency, progression points). Limited Triggers may be invoked at most N times per player — ideal for one-time milestones, achievements, or first-launch gifts. Unlimited Triggers can be invoked repeatedly for recurring rewards such as per-kill drops or ad-watch grants. Rewards are automatically granted to the player's inventory and wallets.

See the LootLocker documentation.

Function Documentation

◆ InvokeTriggersByKey()

static void LootLocker.Requests.LootLockerSDKManager.InvokeTriggersByKey ( string[]  KeysToInvoke,
Action< LootLockerInvokeTriggersByKeyResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Invoke a set of triggers by key.

Note that the response contains two lists:

  • One listing the keys of the triggers that were successfully executed
  • One listing the triggers that failed as well as the reason they did so

This means that the request can "succeed" but still contain triggers that failed. So make sure to check the inner results.

Parameters
KeysToInvokeList of keys of the triggers to invoke
onCompleteonComplete Action for handling the server response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

Functions

static void LootLocker.Requests.LootLockerSDKManager.InvokeTriggersByKey (string[] KeysToInvoke, Action< LootLockerInvokeTriggersByKeyResponse > onComplete, string forPlayerWithUlid=null)
 Invoke a set of triggers by key.