> For the complete documentation index, see [llms.txt](https://roogame.gitbook.io/roogame/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://roogame.gitbook.io/roogame/ultimate-stats-framework/creating-your-attribute-system/api-reference/component-api.md).

# Component API

The `Ultimate Stats Framework Component` owns the runtime Stats and Attributes for an Actor.

Use these functions to configure or rebuild the component.

| Function                | Description                                                                                                                                                                                                                                                                                                                                                               |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Set Character Tag`     | Selects which character configuration the component should use. Provide the Gameplay Tag assigned to a character in your project, such as `RooGame.Character.Player`. The component uses this tag to find that character's configured Stats and Attributes. Use this when your project manages character data through the central Ultimate Stats Framework data workflow. |
| `Set Stat Value Config` | Assigns a specific `Stat Value Data Asset` directly to the component. This Data Asset defines the collection of Stats and Attributes that the Actor should receive at runtime. Use this when you want to configure an Actor with a direct asset reference instead of resolving configuration through a Character Tag.                                                     |
| `Reinitialize Stats`    | Rebuilds the component's runtime Stats and Attributes using its current Character Tag or Stat Value Config. Call this after changing either configuration input so the new configuration is applied to the Actor.                                                                                                                                                         |

> `Character Tag` is the preferred configuration method. `Stat Value Config` is available for direct configuration.

<figure><img src="https://2218703886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4YPyrdOyfjDGtlxlvjSd%2Fuploads%2Fiz1eLDD2yHE5p3M2rvjl%2Fimage.png?alt=media&amp;token=d41e232d-92d2-4303-8d35-0c4c330392aa" alt=""><figcaption></figcaption></figure>

> **RGFC** is short for `Ultimate Stats Framework Component`.\
> In Blueprints, the Stat and Attribute module is displayed as **Roo Stat Component**. It is a module provided by the Ultimate Stats Framework Component, not a separate framework component that requires additional setup.
