# Create & Configure an Asset

In this How-To we will go through the process of creating and configuring an Asset in the LootLocker Web Console.

### Prerequisites

* A LootLocker account
* A created game in the web console

## Configure Contexts

Before you create your first Asset, you will want to configure Asset Contexts, so that LootLocker know what and how you plan on using the Assets in your game.

An Asset Context is a way to group and describe Assets. All Assets must be assigned an Asset Context when being created. Defining the Context of an Asset lets your game know what type of Asset it is, and lets LootLocker know what sort of information or logic will be stored in the Asset and any special relationships it should have, for example with [Character Classes](https://github.com/lootlocker/gitbook-sync/blob/main/content/admin/game-settings.md#character-classes) and [Default Loadouts](https://github.com/lootlocker/gitbook-sync/blob/main/content/admin/game-settings.md#default-loadout).

The Context Configuration menu can be found in the Game Settings menu by clicking the `Settings` icon on the left bar of the Management Interface.

![](https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-7971ee8209ef0aff41dbfd6234324eb2201dec3c%2FsettingsMenu.png?alt=media\&token=aa0d5d7c-16c2-498b-93a7-dc6cec46c5ea)

Click on the `Context Configuration` tab at the top of the Game Settings menu. You should be taken to a menu that looks like this.

![](https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-5279d779dd95e9ed3dbfcc0eabc92ab0522d45ad%2FhowTo-contextConfiguration.png?alt=media\&token=5e6a0f0e-c71c-45a2-a454-2a65534e9e60)

{% hint style="info" %}
You will notice that there is already one context configured, **Feature Unlocks**. This is by design as this type of Context needs to exist by default in case it is used to unlock other Contexts.
{% endhint %}

To create a new Context, click the `Add Context` button. As we want to create a Generic Asset, select `Generic Assets (Simplified)` from the Complexity dropdown menu.

![](https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-a5e9c70b92540546edff6c4cc8024a5f93efa63a%2FhowTo-selectGenericAssets.png?alt=media\&token=cadf6563-d086-4f03-b6f6-18be5a3ed590)

{% hint style="info" %}
In this tutorial we are creating a cosmetic using the **Generic Assets** complexity. If you want more functionality like Asset variations or multiple Asset images, we recommend using the **Customization** Complexity.
{% endhint %}

Next we will want to fill in the rest of the information about the Context. A detailed explanation about each of the Context options can be found [here](https://docs.lootlocker.com/admin/game-settings#context-configuration).

* **Name:** Hat
* **Friendly Name:** (can leave this blank if the Friendly Name is the same as the Name)
* **Detachable?:** Yes (so that this Context can be unequipped by the player, in case they do not want to wear a hat)
* **User Facing?:** Yes
* **Depends On:** Independent (No Asset)

Click `Save Contexts` to save this Context. It should now look like this:

![](https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-099e0e50cd165e408d83ed9e59800c1cface96ec%2FhowTo-contextSaved.png?alt=media\&token=b86c59fb-4c17-4acb-b85a-7f96fc15b3bf)

{% hint style="success" %}
You've now set up your first Context and are ready to create your first Asset!
{% endhint %}

## Create the Asset

Now lets navigate to the Asset Manager to create our first Asset. The Asset Manager can be accessed by clicking the `Content` button of the side bar and selecting `Assets`.

![](https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-c1b8a11fd99d4244c648c81f86eabd77713b621f%2FhowTo-addAsset.png?alt=media\&token=ec42e2b0-26c8-43a3-9290-dd9a0c6282e9)

To create an Asset, click the `Add Asset` button in the top right corner of the Asset Manager. Fill in an Asset Name and select the `Hat` Context from the drop down menu. Click `Create` to create the Asset.

![](https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-b46ea85ad6ece9e23dc4bf0ef0049536f6e214c2%2FhowTo-createNewAsset.png?alt=media\&token=a7dc81a9-bf3e-46af-9be1-46ca2d758824)

Once the Asset has been created, you will be taken to the Asset's page where you can see all of it's stored information and data. It should look like this:

![](https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-d0342a9eeea5c4906571146bb94b1f6505a3d4af%2FhowTo-assetInfo.png?alt=media\&token=cf551737-a74a-4ae9-aea8-f02c022216f1)

In this tutorial we will ignore most of the fields as they are not required. We will, however, attach an image to this Asset that can be sent to the game and used as an icon in-game. To do this, click on the `Filters & Storage` tab in the Asset menu.

![](https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-fbddb12695f012578d5a97d62d9e56dd1ce31d19%2FhowTo-assetFileEmpty.png?alt=media\&token=905a8d4e-269f-4449-b50e-c4d158ae21c2)

Next, either drag the image file you'd like to use for the Asset's icon into the box under the `Files` header, or click on the box to open a dialog.

![](https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-22241a4d083d60e82dd2e6daf05a70be4f3937bc%2FhowTo-assetFile.png?alt=media\&token=cd1dbe6d-4c3f-41dd-a4ef-7ff147187601)

### Activate the Asset

The final step is to activate the Asset so that it is sent to the game and players can access the Asset. To do this, click the `Activate` button on the right side of the Asset menu. Clicking Activate will automatically Activate and save any changes you have made to the Asset.

## Conclusion

In this How-to, we've created, configured, and activated an Asset. Now that the Asset is active, it's ready to be retrieved in-game or equipped to your player's character. You can also use Asset Storage to attach additional game related data to the Asset.
