Implement DLC In-Game

The following tutorial assumes you have already set up your game and made your first API calls. To learn how to do that, visit the Getting Started guide.

Initiate DLC Migrations

If you want to manually trigger a DLC migration you can use this code:

LootLockerSDKManager.InitiateDLCMigration((response) =>
{
    if (response.success)
    {
        Debug.Log("Successfully initiated DLC migrations");
    }
    else
    {
        Debug.Log("Error initiating DLC migrations");
    }
});

Get DLCs Migrated

To see what DLCs the player have already migrated

 LootLockerSDKManager.GetDLCMigrated((response) =>
{
    if (response.success)
    {
        Debug.Log("Successfully received migrated DLCs");
    }
    else
    {
        Debug.Log("Error receiving migrated DLCs");
    }
});

Last updated