# Register Assets with the Asset Manager

> For the complete documentation index, see [llms.txt](llms.txt).

Register the folders where your plugin looks for gameplay data. For example, the default Ninja Factions database scans for faction definitions. A saved faction can appear in the Content Browser and still be outside the folder the database searches.

## Adding Primary Assets

Procedure: Register a folder for faction definitions

1. In the Content Browser, create Content/Data/Factions. Unreal calls the project's Content folder `/Game`, so this folder's asset path is `/Game/Data/Factions`.

2. Open Edit → Project Settings → Game → Asset Manager → Primary Asset Types to Scan. Add an entry for `FactionSetup`, or edit the existing entry for that type. Select `NinjaFactionDataAsset` as the Asset Base Class.

3. Add `/Game/Data/Factions` under Directories. Leave Has Blueprint Classes and Is Editor Only off for these data assets. Set Cook Rule to Always Cook to include the scanned assets in packaged games. Save the settings and restart the editor.

![FactionSetup asset type, base class, and scan directory in Project Settings](Documentation/fct_setup_asset_manager.png)

## Choose the Entries Your Plugin Uses

Use your own content folders if you already keep these assets elsewhere. Input bindings and the first Interaction switch can go straight to their plugin walkthroughs. [Move a template character](ipt-first-steps.html) or [interact with a nearby object](int-first-steps.html).

| When you need it | Primary Asset Type | Asset Base Class | Example directory |
| --- | --- | --- | --- |
| [Bot setups](bot-first-steps.html) | `BotSetupData` | `NinjaBotSetupDataAsset` | `/Game/Data/Bots` |
| [Combat firearm definitions](cbt-guide-firearms.html) | `FirearmData` | `NinjaCombatFirearmDataAsset` | `/Game/Data/Firearms` |
| [Factions in the asset database](fct-first-steps.html) | `FactionSetup` | `NinjaFactionDataAsset` | `/Game/Data/Factions` |
| [G.A.S. ability bundles](gas-first-steps.html) | `AbilityBundleData` | `NinjaGASDataAsset` | `/Game/Data/Abilities/Bundles` |
| [Inventory containers](inv-first-steps.html) | `InventoryContainerData` | `NinjaInventoryContainerDataAsset` | `/Game/Data/Containers` |
| [Inventory items](inv-first-steps.html) | `InventoryItemData` | `NinjaInventoryItemDataAsset` | `/Game/Data/Items` |

## Modifying DefaultGame.ini

If you manage settings in source control, the faction example corresponds to this entry in `Config/DefaultGame.ini`. Edit the existing scan entry if you already added it in Project Settings.

```INI
[/Script/Engine.AssetManagerSettings]
+PrimaryAssetTypesToScan=(PrimaryAssetType="FactionSetup",AssetBaseClass="/Script/NinjaFactions.NinjaFactionDataAsset",bHasBlueprintClasses=False,bIsEditorOnly=False,Directories=((Path="/Game/Data/Factions")),Rules=(CookRule=AlwaysCook))
```

## Check That Unreal Found the Asset

Create and save a faction in the registered folder as described in [Give Two Actors Opposing Factions](fct-first-steps.html). In the editor's Output Log, run `AssetManager.DumpTypeSummary`. Find `FactionSetup` and check that its asset count includes your new faction and its scan path matches the folder. If the count is zero, compare the asset's class and location with the entry above. Use the same check with the type name for your own plugin.

