![]() |
LootLocker Unity SDK 8.0.0
Game backend SDK for Unity
|
Link multiple platform accounts together under a single LootLocker player identity.
Once linked, the same player profile loads regardless of which platform the game is started on, enabling cross-platform progression and cross-saves. Linking can be done via External Linking (redirects to the LootLocker auth.game website; recommended for most cases) or Direct Linking (used when the player is already on the target platform). Also supports transitioning a Guest Login to any other provider.
See the LootLocker documentation.
|
inlinestatic |
Connect an Apple Account (authorized by Rest Sign In) to the currently logged in LootLocker account allowing that google account to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Apple account is linked into.
| authorizationCode | Authorization code, provided by apple during Sign In |
| onComplete | onComplete Action for handling the response |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
inlinestatic |
Connect an Discord Account to the currently logged in LootLocker account allowing that Discord account to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Discord account is linked into.
| token | The Token from Discord sign in |
| onComplete | onComplete Action for handling the response |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
inlinestatic |
Connect an Epic Account to the currently logged in LootLocker account allowing that Epic account to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Epic account is linked into.
| Token | The Token from Epic sign in |
| onComplete | onComplete Action for handling the response |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
inlinestatic |
Connect a Google Account to the currently logged in LootLocker account allowing that google account to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Google account is linked into.
| idToken | The Id Token from google sign in |
| onComplete | onComplete Action for handling the response |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
inlinestatic |
Connect a Google Account (with a Google Platform specified) to the currently logged in LootLocker account allowing that google account to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Google account is linked into.
| idToken | The Id Token from google sign in |
| platform | Google OAuth2 ClientID platform |
| onComplete | onComplete Action for handling the response |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
inlinestatic |
Connect a Playstation Account to the currently logged in LootLocker account allowing that Playstation account to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Playstation account is linked into.
| environment | The environment for the playstation account (dev, qa, prod) |
| code | The code from playstation sign in |
| onComplete | onComplete Action for handling the response |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
inlinestatic |
Connect an identity provider (authorized using a remote link session) to the currently logged in LootLocker account allowing that authentication method to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Remote Session account is linked into.
| Code | The lease code returned with the response when starting a lease process. Note that the process must have concluded successfully first. |
| Nonce | The nonce returned with the response when starting a lease process. Note that the process must have concluded successfully first. |
| onComplete | onComplete Action for handling the response |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
inlinestatic |
Connect a Twitch Account to the currently logged in LootLocker account allowing that Twitch account to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Twitch account is linked into.
| authorizationCode | The Authorization Code from Twitch sign in |
| onComplete | onComplete Action for handling the response |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
inlinestatic |
Disconnect account from the currently logged in account.
Use this to disconnect an account (like a Google or Apple account) that can be used to start sessions for this LootLocker account so that it is no longer allowed to do that IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the provider is disconnected from
| accountToDisconnect | What account to disconnect from this LootLocker Account |
| onComplete | onComplete Action for handling the response |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
inlinestatic |
List identity providers (like Apple, Google, etc.) that are connected to the currently logged in account.
| onComplete | onComplete Action for handling the response |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
inlinestatic |
This endpoint lets you transfer identity providers between two players, provided you have a valid session for both.
The designated identity providers will be transferred FROM the player designated by the FromPlayerWithUlid parameter and TO the player designated by the ToPlayerWithUlid parameter. If any of the providers can not be transferred the whole operation will fail and NO identity providers will be transferred. IMPORTANT: This is a destructive action.Once an identity provider has been transferred they will allow authentication for the target player and no longer authenticate for the source player. This can leave the source player without means of authentication and thus unusable from the game.
** Limitations**
| FromPlayerWithUlid | The ULID of an authenticated player that you wish to move identity providers FROM |
| ToPlayerWithUlid | The ULID of an authenticated player that you wish to move identity providers TO |
| ProvidersToTransfer | Which identity providers you wish to transfer |
| onComplete | onComplete Action for handling the response |
Functions | |
| static void | LootLocker.Requests.LootLockerSDKManager.ListConnectedAccounts (Action< LootLockerListConnectedAccountsResponse > onComplete, string forPlayerWithUlid=null) |
| List identity providers (like Apple, Google, etc.) that are connected to the currently logged in account. | |
| static void | LootLocker.Requests.LootLockerSDKManager.DisconnectAccount (LootLockerAccountProvider accountToDisconnect, Action< LootLockerAccountConnectedResponse > onComplete, string forPlayerWithUlid=null) |
| Disconnect account from the currently logged in account. | |
| static void | LootLocker.Requests.LootLockerSDKManager.ConnectGoogleAccount (string idToken, Action< LootLockerAccountConnectedResponse > onComplete, string forPlayerWithUlid=null) |
Connect a Google Account to the currently logged in LootLocker account allowing that google account to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Google account is linked into. | |
| static void | LootLocker.Requests.LootLockerSDKManager.ConnectGoogleAccount (string idToken, GoogleAccountProviderPlatform platform, Action< LootLockerAccountConnectedResponse > onComplete, string forPlayerWithUlid=null) |
Connect a Google Account (with a Google Platform specified) to the currently logged in LootLocker account allowing that google account to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Google account is linked into. | |
| static void | LootLocker.Requests.LootLockerSDKManager.ConnectAppleAccountByRestSignIn (string authorizationCode, Action< LootLockerAccountConnectedResponse > onComplete, string forPlayerWithUlid=null) |
Connect an Apple Account (authorized by Rest Sign In) to the currently logged in LootLocker account allowing that google account to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Apple account is linked into. | |
| static void | LootLocker.Requests.LootLockerSDKManager.ConnectTwitchAccount (string authorizationCode, Action< LootLockerAccountConnectedResponse > onComplete, string forPlayerWithUlid=null) |
Connect a Twitch Account to the currently logged in LootLocker account allowing that Twitch account to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Twitch account is linked into. | |
| static void | LootLocker.Requests.LootLockerSDKManager.ConnectEpicAccount (string Token, Action< LootLockerAccountConnectedResponse > onComplete, string forPlayerWithUlid=null) |
Connect an Epic Account to the currently logged in LootLocker account allowing that Epic account to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Epic account is linked into. | |
| static void | LootLocker.Requests.LootLockerSDKManager.ConnectPlaystationAccount (string environment, string code, Action< LootLockerAccountConnectedResponse > onComplete, string forPlayerWithUlid=null) |
Connect a Playstation Account to the currently logged in LootLocker account allowing that Playstation account to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Playstation account is linked into. | |
| static void | LootLocker.Requests.LootLockerSDKManager.ConnectDiscordAccount (string token, Action< LootLockerAccountConnectedResponse > onComplete, string forPlayerWithUlid=null) |
Connect an Discord Account to the currently logged in LootLocker account allowing that Discord account to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Discord account is linked into. | |
| static void | LootLocker.Requests.LootLockerSDKManager.ConnectRemoteSessionAccount (string Code, string Nonce, Action< LootLockerAccountConnectedResponse > onComplete, string forPlayerWithUlid=null) |
Connect an identity provider (authorized using a remote link session) to the currently logged in LootLocker account allowing that authentication method to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Remote Session account is linked into. | |
| static void | LootLocker.Requests.LootLockerSDKManager.TransferIdentityProvidersBetweenAccounts (string FromPlayerWithUlid, string ToPlayerWithUlid, List< LootLockerAccountProvider > ProvidersToTransfer, Action< LootLockerListConnectedAccountsResponse > onComplete) |
| This endpoint lets you transfer identity providers between two players, provided you have a valid session for both. | |