LootLocker
The BasicsGame SystemsContent ManagementPlayer Management
LootLocker
  • 📌The Basics
    • Getting Started
    • What is LootLocker?
    • Core Concepts
      • Players
      • Assets
      • Character Classes
      • API Types
      • Web Console
      • Stage & Live Environments
      • Glossary
    • Unity Quick Start
      • Install the SDK
      • Configure the SDK
      • Authenticate Your First Player
      • Update the SDK
    • Unreal Quick Start
      • Install & Configure the SDK
        • Older versions
      • Authenticate Your First Player
    • Godot Quick Start
      • Install the SDK
      • Configure the SDK
      • Authenticate Your First Player
      • Update the SDK
    • SDKs
    • Samples
      • Authentication Samples
      • Leaderboard Samples
      • Progression Samples
      • Player Samples
    • Launching Your Game
    • Support
      • Error Codes
      • Unreal Marketplace Plugin Support
  • 🎭Players
    • Overview
    • Authentication
      • How To
        • Guest Login
        • Steam
        • Apple
        • Apple Game Center
        • Google
        • Epic Games
        • PlayStation
        • Meta / Oculus
        • Xbox
        • Nintendo Switch
    • Files
      • How To
        • Manage Files in Web Console
        • Work with Files In-Game
    • Inventory
      • How To
        • Work with Player Inventory
    • Messages
      • How To
        • Configure Messages in Web Console
    • Names
      • How To
        • Work with Player Names
    • Player Manager
      • How To
        • Manage Players through Web Console
        • Manage Players In-Game
        • Use Player Operations
    • Unified Player Accounts
      • How To
        • Configure UPA in Web Console
        • Use Remote Login In-Game
        • Connect Identiy Provider to Player
        • External Provider Linking
        • Transition from Guest Login to Other Provider
        • Disconnect Identity Provider from Player
    • White Label Login
      • How To
        • Configure White Label Login
        • Create a New White Label User
        • Request User Verification
        • Handle Returning Users
        • Start a White Label Session
  • 🪙Commerce
    • Overview
    • Catalogs
      • How To
        • Configure Catalogs in LootLocker Console
        • List all Catalogs
        • Use Catalogs In-Game
        • Setup In-Game Store
    • Currencies
      • How To
        • Configure a Currency in Web Console
        • Use Currencies In-Game
    • DLC Management
      • How To
        • Configure DLC in Web Console
        • Use DLC In-Game
    • Entitlements
      • How To
        • Work with Entitlements In-Game
    • Real Money Purchases
      • How To
        • Configure In-App Purchase in Web Console
        • Make Purchases through Google Play Store
        • Make Purchases through Apple Store
        • Make Purchases through Steam Store
    • Virtual Purchases
    • Wallets
      • How To
        • Manage a Wallet in Web Console
        • Use Wallets In-Game
  • ⚔️Content
    • Overview
    • Assets
      • How To
        • Create & Configure an Asset
        • Organize & Search for Assets
        • Retrieve Assets In-Game
        • Set up Asset Storage Template
        • Check Grant Notifications
        • Set up a Game Config Asset
        • Create a Loot Box
        • Work with Loot Boxes In-Game
        • Create a Drop Table
        • Work with Drop Tables In-Game
        • Create a Rental Asset
        • Work with Rental Assets In-Game
    • User Generated Content (UGC)
      • How To
        • Create UGC In-Game
    • Twitch Drops
  • 🕹️Game Systems
    • Overview
    • Classes & Heroes
      • How To
        • Base Classes
        • Hero Classes
        • Implement Classes In-Game
        • Implement Heroes In-Game
    • Leaderboards
      • How To
        • Configure Leaderboard in Web Console
        • Use Player Leaderboards
        • Use Generic Leaderboards
        • Use Metadata to Store Additional Information
        • Use Scheduled Reset with Rewards
        • Use Leaderboards for Time Based Rankings
      • Leaderboard FAQ
      • GameMaker References
    • Feedback
      • How To
        • Manage Feedback Categories
        • Create Player Feedback
        • Create UGC Feedback
        • Create Game Feedback
        • View and Manage Feedback
    • Progressions
      • How To
        • Create a Progression
        • Game Progressions
        • Player Progressions
        • Class Progressions
        • Asset Instance Progressions
    • Triggers
      • How To
        • Setup a trigger in the Web Console
        • Invoke trigger from game
  • ⛓️Shared Systems
    • Overview
    • Metadata
      • How To
        • Add Metadata in Console
        • Fetch a Single Metadata In-Game
        • Fetch Metadata In-Game by Tags
        • Fetch Metadata In-Game from Multiple Sources
    • Notifications
      • How To
        • List Notifications and Mark as Read In-Game
  • 🗝️Admin
    • Settings
    • User Settings
    • Organization Settings
    • CORS Allowlist
  • ⭕️ Legacy
    • Deprecations
      • Unity SDK Deprecation Log
        • Version 2.1.5 - Migration to Open UPM
        • Version 2.0.0
      • Unreal SDK Deprecation Log
        • Version 4.0.0
        • Version 3.0.0
    • Legacy Storage
    • Legacy Triggers
      • Activate a trigger
      • Create a trigger
    • Legacy Progressions
      • Create a Progression System
      • Use a Progression System In-Game
Powered by GitBook
On this page
  • Create Classes
  • Update Class
  • List Class Types
  • List Player Classes
  • Get Class loadout
  • Get Other Players Class loadout
  • Equip Asset to Default Class
  • Equip Asset to Class
  • Unequip Asset from Default Class
  • Get Equippable Contexts to Default Class
  1. Game Systems
  2. Classes & Heroes
  3. How To

Implement Classes In-Game

PreviousHero ClassesNextImplement Heroes In-Game

Last updated 5 months ago

Currently the In-Game implementation has not been renamed, so you will see 'Character' in a lot of our functions.

Create Classes

string characterTypeID = "5";
string characterName = "Mage";

LootLockerSDKManager.CreateCharacter(characterTypeID, characterName, true, (response) =>
{
    if (!response.success)
    {
        Debug.Log("Could not create Character");
        return;
    }

});

To see what data gets returned, please refer to our .

Update Class

string characterID = "5";
string characterName = "Mage";

LootLockerSDKManager.UpdateCharacter(characterID, characterName, true, (response) =>{

    if (!response.success)
    {
        Debug.Log("Could not update Character");
        return;
    }

});

To see what data gets returned, please refer to our .

List Class Types

LootLockerSDKManager.ListCharacterTypes((response) =>
{

    if (!response.success)
    {
        Debug.Log("Could not list Character types");
        return;
    }

});

List Player Classes

If your game uses heroes the characters underlying the heroes will be listed too.

LootLockerSDKManager.ListPlayerCharacters((response) =>
{
    if (!response.success)
    {
        Debug.Log("Could not list Characters");
        return;
    }

});

Get Class loadout

This call will return all characters loadouts for a game, and have some additional information on the characters.

LootLockerSDKManager.GetCharacterLoadout((response) =>
{
    if (!response.success)
    {
        Debug.Log("Could not list Character loadouts");
        return;
    }

});

Get Other Players Class loadout

string playerID = "10";
LootLockerSDKManager.GetOtherPlayersCharacterLoadout(playerID, (response) =>
{

    if (!response.success)
    {
        Debug.Log("Could not get other players loadout");
        return;
    }

});

Equip Asset to Default Class

string assetID = "15120";
LootLockerSDKManager.EquipIdAssetToDefaultCharacter(assetID, (response) =>
{
    if (!response.success)
    {
        Debug.Log("Could not equip asset");
        return;
    }

});

Equip Asset to Class

string characterID = "10";
string assetID = "15120";
LootLockerSDKManager.EquipIdAssetToCharacter(characterID, assetID, (response) =>
{
    if (!response.success)
    {
        Debug.Log("Could not equip asset");
        return;
    }

});

Unequip Asset from Default Class

LootLockerSDKManager.UnEquipIdAssetToCharacter(assetID, (response) =>
{
    if (!response.success)
    {
        Debug.Log("Could not unequip asset");
        return;
    }

});

Get Equippable Contexts to Default Class

LootLockerSDKManager.GetEquipableContextToDefaultCharacter((response) =>
{
    if (!response.success)
    {
        Debug.Log("Could not get equippable Contexts");
        return;
    }

});

To see what data gets returned, please refer to our .

To see what data gets returned, please refer to our .

To see what data gets returned, please refer to our .

To see what data gets returned, please refer to our .

To see what data gets returned, please refer to our .

To see what data gets returned, please refer to our .

To see what data gets returned, please refer to our .

To see what data gets returned, please refer to our .

🕹️
Reference Documentation
Reference Documentation
Reference Documentation
Reference Documentation
Reference Documentation
Reference Documentation
Reference Documentation
Reference Documentation
Reference Documentation
Reference Documentation
Blueprint example of Creating a Class
Blueprint example of Updating a Class
Blueprint example of Listing Class Types
Blueprint example of listing all Player classes
Blueprint example of getting a Class loadout
Blueprint example of getting other players Class loadout
Blueprint example of equipping an Asset to the Default Class
Blueprint example of Equipping an Asset to a specific Class
Blueprint example of Unequipping an Asset from the Default Class
Blueprint example of getting the Equippable Contexts