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:
Unity
1
LootLockerSDKManager.InitiateDLCMigration((response) =>
2
{
3
if (response.success)
4
{
5
Debug.Log("Successfully initiated DLC migrations");
6
}
7
else
8
{
9
Debug.Log("Error initiating DLC migrations");
10
}
11
});
Copied!

Get DLCs Migrated

To see what DLCs the player have already migrated
Unity
1
LootLockerSDKManager.GetDLCMigrated((response) =>
2
{
3
if (response.success)
4
{
5
Debug.Log("Successfully received migrated DLCs");
6
}
7
else
8
{
9
Debug.Log("Error receiving migrated DLCs");
10
}
11
});
Copied!
Last modified 27d ago