Skip to content

Implement DLC In-Game

This how-to migrates a player's entitled DLC content from a first-party platform into their LootLocker inventory, and retrieves the DLCs they've already migrated.

Prerequisites

  • Unity or Unreal SDK installed and configured in your project.
  • A DLC configured in the Web Console and linked to a first-party platform.
  • A Player session started through that first-party platform (see Authentication).

Initiate DLC Migration

Trigger a DLC migration manually to check the player's first-party account for new DLC and move any entitled content into their inventory.

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

Get Migrated DLCs

Retrieve the DLCs the player has already migrated.

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

Conclusion

You've migrated a player's DLC content and retrieved their migrated DLCs from your game. Next, review LootLocker's full feature set to decide which other features to implement.