# Setup primary assets via blueprint for asset manager scan

**URL:** <https://forums.unrealengine.com/t/setup-primary-assets-via-blueprint-for-asset-manager-scan/559269>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, Blueprint, question\
**Created:** [May 17, 2022, 11:36am UTC](https://forums.unrealengine.com/t/setup-primary-assets-via-blueprint-for-asset-manager-scan/559269 "2022-05-17T11:36:12Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Roman\_Roba](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roman\_Roba](https://forums.unrealengine.com/u/Roman_Roba)\
**Post date:** [September 21, 2023, 11:59am UTC](https://forums.unrealengine.com/t/setup-primary-assets-via-blueprint-for-asset-manager-scan/559269/8 "2023-09-21T11:59:39Z")

</div>

Since there is no mention of actual solution to this issue and I had to spend half day of debugging AssetManager and AssetRegistry code, here is how I managed to make it work:

Step 1:  
Create a new **Blueprint Class** , derived from **PrimaryDataAsset**.  
Lets give it a name **PDA\_Item**.

Step 2:  
Create some **Data Asset** (s) instances so we can test it. Make sure that it is derived from **PDA\_Item**. Lets name it **DA\_Item01** , **DA\_Item02** …  
Added via Content Browser-\>Right Click-\>Miscellaneous-\>Data Asset.

Step 3:  
Go to Project Settings-\>Game-\> **Asset Manager** and then:

- Add new entry to **Primary Asset Types to Scan**.
- Set **Asset Base Class** to **PDA\_Item**.
- Set **Primary Asset Type to** to **PDA\_Item\_C**. ← Note **\_C**.
- Make sure **Has Blueprint Classes** is disabled.
- Set directory where you stored your Data Assets eg. **/Game/Items**.

Step 4:  
Now in BP you can use functionality such as:

- **Get Primary Asset Id List** to obtain all asset Ids so you can load them via **Async Load Primary Asset List**.
- Use **Async Load primary Asset Class** and be able to select from your primary asset ids.
- Other UE / your own logic.

Step 5:  
Now you can edit PDA files without any need to ask programmers to do it for you in C++.

Note:  
If you change **DA** or **Primary Asset Type** names, you must fix references, since they will point to old ids/types.

---

_[View the full topic](https://forums.unrealengine.com/t/setup-primary-assets-via-blueprint-for-asset-manager-scan/559269)._
