# Stat

{% hint style="success" %}

#### Like what you're seeing?

Support us as a [GitHub Sponsor](https://kb.heathen.group/old-kb/where-to-buy/become-a-sponsor) and get instant access to all our assets, exclusive tools and assets, escalated support and issue tracking and our gratitude.\
\
These articles are made possible by our [GitHub Sponsors](https://kb.heathen.group/old-kb/where-to-buy/become-a-sponsor) ... become a sponsor today!
{% endhint %}

## Introduction

Steam Stats are a simple concept keyed on the `API Name` of the stat. You would have created the stat in your Steamworks Developer Portal and defined its `API Name` there. You can create a Data Asset to represent your stat in your game content making it easier to manage and work with that specific stat.

You can create a Data Asset in your project for each of your stats

## Create

To create a new Stat Instance select the type StatDataAsset.

<figure><img src="https://4053370152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZWu8yFOWhCYCMkJFmR%2Fuploads%2FuHEo2yBSx0F6ZGool7a6%2Fimage.png?alt=media&#x26;token=a89931ad-315b-4313-a1de-199b6c9b8c9f" alt=""><figcaption></figcaption></figure>

## Configuration

Select the new stat asset data object and set the API Name to match the value you defined in you Steamworks Developer Portal for the stat.

<figure><img src="https://4053370152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZWu8yFOWhCYCMkJFmR%2Fuploads%2FXT1nT3CoPONLxy03joca%2Fimage.png?alt=media&#x26;token=e3698c86-07ba-43f6-b1c0-7e5672c9d5b3" alt=""><figcaption></figcaption></figure>

## Use

To get started using the stat create a variable in your Blueprint of type Stat Data Asset and set the default value to the desired stat.

<figure><img src="https://4053370152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZWu8yFOWhCYCMkJFmR%2Fuploads%2Fy2NOtubHFjyqIYRfXczE%2Fimage.png?alt=media&#x26;token=7aeb76e0-41c5-4b5d-8a65-383535cf18b4" alt=""><figcaption></figcaption></figure>

You can now drag off that variable to access features of the stat for reading and setting values.

<figure><img src="https://4053370152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZWu8yFOWhCYCMkJFmR%2Fuploads%2F6EDReuoz9xVIuSVduIdR%2Fimage.png?alt=media&#x26;token=7cb77782-6e6e-4864-914a-bf1a1ae1111f" alt=""><figcaption></figcaption></figure>
