# 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:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bonjwa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bonjwa](https://forums.unrealengine.com/u/Bonjwa)\
**Post date:** [May 17, 2022, 11:36am UTC](https://forums.unrealengine.com/t/setup-primary-assets-via-blueprint-for-asset-manager-scan/559269/1 "2022-05-17T11:36:12Z")

</div>

Hi there,

I’m currently trying to setup the asset manager via blueprint.  
My setup:

PrimaryDataAsset “PDA\_Item” in blueprint  
Trying to overwrite GetPrimaryAssetId inside this blueprint, so the asset manager will notice it as a primary asset type  
The function returns a struct of type PrimaryAssetId with PrimaryAssetType “Item” and PrimaryAssetName from variable “Name” that I set for every Asset of type “Item”

DataAsset “DA\_Helmet” created from this PrimaryDataAsset  
“Name” set to “Helmet”

Now trying to feed the asset to asset manager  
Primay Asset Type “Item”  
Asset Base Class “PDA\_Item”  
Has Blueprint Classes “checked”  
Directories “…Content/Items”

With this im trying to use the setup described in [Asset Manager Explained | Inside Unreal - YouTube](https://www.youtube.com/watch?v=9MGHBU5eNu0) for the GameInstance.

However my assets don’t seem to be recognized by the asset manager. The blueprint node GetPrimaryAssetIdList returns an empty list for the PrimaryAssetType “Item”.

Has anyone experience with building this setup in blueprint? Is it even possible to overwrite GetPrimaryAssetId without C++?

Thanks for taking your time to read!

---

<div class="post-metadata">

**Author:** ![Bonjwa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bonjwa](https://forums.unrealengine.com/u/Bonjwa)\
**Post date:** [May 18, 2022, 2:36pm UTC](https://forums.unrealengine.com/t/setup-primary-assets-via-blueprint-for-asset-manager-scan/559269/2 "2022-05-18T14:36:11Z")

</div>

Simply seems to not work via blueprint right now. Asked a friend to help me setup a C++ PrimaryAsset for the asset manager

---

<div class="post-metadata">

**Author:** ![dorusoftware](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dorusoftware](https://forums.unrealengine.com/u/dorusoftware)\
**Post date:** [July 23, 2022, 5:08pm UTC](https://forums.unrealengine.com/t/setup-primary-assets-via-blueprint-for-asset-manager-scan/559269/3 "2022-07-23T17:08:18Z")

</div>

Is this actually still doesn’t work in blueprint? do I need to create them in C++?

what is the point of that Primary Asset blueprint then?

---

<div class="post-metadata">

**Author:** ![BIGTIMEMASTER](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bigtimemaster/32/710746_2.png) [@BIGTIMEMASTER](https://forums.unrealengine.com/u/BIGTIMEMASTER)\
**Post date:** [July 23, 2022, 6:29pm UTC](https://forums.unrealengine.com/t/setup-primary-assets-via-blueprint-for-asset-manager-scan/559269/4 "2022-07-23T18:29:07Z")

</div>

i dunno if this solves your problem but if you havent seen it may be worth a watch. I remember there is some caveat involved to make it work that matthew wadstein covers here:  
[HTF do I? Blueprint only Data Assets in Unreal Engine 4 ( UE4 ) - YouTube](https://www.youtube.com/watch?v=hcwo5m8E_1o)

---

<div class="post-metadata">

**Author:** ![dorusoftware](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dorusoftware](https://forums.unrealengine.com/u/dorusoftware)\
**Post date:** [July 23, 2022, 11:45pm UTC](https://forums.unrealengine.com/t/setup-primary-assets-via-blueprint-for-asset-manager-scan/559269/5 "2022-07-23T23:45:15Z")

</div>

I’ve seen that tutorial.

What I’ve manged to do is to make them work all of them just fine. Problem is that they do not work with the Asset Manager. It doesn’t find the IDs so you can load them in batch. Which defeats the purpose of having them. I can load them one by one if I know where and how many of them to use. But that is not how it should work

It appears that you need to override the GetPrimaryAssetId() function, which you can use in code but not in blueprint.

I really don’t want to learn the ■■■■ C++ stuff. Now I’ve managed to create the primary data in code, then create the child data assets in blueprint. Works fine with the asset manager. As it should. But boy I can’t seem to create a struct, because all the blueprints structs I have are not visible in code.

edit: Nevermind, I’ve made it work. The asset manager finds the IDs, It appears I can avoid C++ for now.

---

<div class="post-metadata">

**Author:** ![Morpheus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/morpheus/32/683572_2.png) [@Morpheus](https://forums.unrealengine.com/u/Morpheus)\
**Post date:** [June 11, 2023, 8:53pm UTC](https://forums.unrealengine.com/t/setup-primary-assets-via-blueprint-for-asset-manager-scan/559269/6 "2023-06-11T20:53:52Z")

</div>

Did you manage to get this working in blueprint exclusively, or did you end up with a C++ base class?

---

<div class="post-metadata">

**Author:** ![dorusoftware](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dorusoftware](https://forums.unrealengine.com/u/dorusoftware)\
**Post date:** [June 13, 2023, 10:06am UTC](https://forums.unrealengine.com/t/setup-primary-assets-via-blueprint-for-asset-manager-scan/559269/7 "2023-06-13T10:06:04Z")

</div>

what do you want to do?

yes, it works in blueprint mode only. with no C++. it takes some steps to have it work correctly, so please define what you want to do see if it match the system I’ve found

---

<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.

---

<div class="post-metadata">

**Author:** ![FUNKINFAMILYMUSIC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/funkinfamilymusic/32/820184_2.png) [@FUNKINFAMILYMUSIC](https://forums.unrealengine.com/u/FUNKINFAMILYMUSIC)\
**Post date:** [December 9, 2023, 3:52am UTC](https://forums.unrealengine.com/t/setup-primary-assets-via-blueprint-for-asset-manager-scan/559269/9 "2023-12-09T03:52:09Z")

</div>

> [@Roman\_Roba](#):
>
> Set **Primary Asset Type to** to **PDA\_Item\_C**. ← Note **\_C**.

Thank you so much for explaining this so thoroughly. That one step was messing me up for days…

---

<div class="post-metadata">

**Author:** ![faizanuar08](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@faizanuar08](https://forums.unrealengine.com/u/faizanuar08)\
**Post date:** [February 11, 2024, 11:18pm UTC](https://forums.unrealengine.com/t/setup-primary-assets-via-blueprint-for-asset-manager-scan/559269/10 "2024-02-11T23:18:53Z")

</div>

Helped me a a lot. Just need to add **\_C** (without .) after the Primary Asset Type.

---

<div class="post-metadata">

**Author:** ![JamesRowbotham1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JamesRowbotham1](https://forums.unrealengine.com/u/JamesRowbotham1)\
**Post date:** [February 12, 2024, 5:05am UTC](https://forums.unrealengine.com/t/setup-primary-assets-via-blueprint-for-asset-manager-scan/559269/11 "2024-02-12T05:05:58Z")

</div>

Roman\_Roba, you hero.  
Adding the **\_C** to the end of the Primary Asset Type, sorted my problem out.  
Thank you for taking the time to share that solution breakdown

---

<div class="post-metadata">

**Author:** ![Oleana1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Oleana1](https://forums.unrealengine.com/u/Oleana1)\
**Post date:** [October 24, 2024, 5:06pm UTC](https://forums.unrealengine.com/t/setup-primary-assets-via-blueprint-for-asset-manager-scan/559269/12 "2024-10-24T17:06:49Z")

</div>

Thank you!!! It helps me a lot. I searched why this not work few days. And at last I found this topic.

---

<div class="post-metadata">

**Author:** ![ShenDaXia](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shendaxia/32/622849_2.png) [@ShenDaXia](https://forums.unrealengine.com/u/ShenDaXia)\
**Post date:** [December 8, 2024, 3:43am UTC](https://forums.unrealengine.com/t/setup-primary-assets-via-blueprint-for-asset-manager-scan/559269/13 "2024-12-08T03:43:25Z")

</div>

This is very important! Thank you very much!

---

<div class="post-metadata">

**Author:** ![mugenmelon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mugenmelon/32/1035828_2.png) [@mugenmelon](https://forums.unrealengine.com/u/mugenmelon)\
**Post date:** [April 11, 2025, 1:19pm UTC](https://forums.unrealengine.com/t/setup-primary-assets-via-blueprint-for-asset-manager-scan/559269/14 "2025-04-11T13:19:32Z")

</div>

Throwing in my 2 cents here. The solution @Roman_Roba provided may work, but apparently there are issues with Blueprint inheritance when you mix BP classes & DataAsset instances.

The comment on `UPrimaryDataAsset` reads:

> With blueprint subclasses, use Data Only Blueprints (and not Data Asset instances) to properly handle data inheritance and updating the parent class.

This is how it works:

1. Create a child BP of `PrimaryDataAsset`, e.g. _BP\_PawnDefinition_.  
 → This is your `PrimaryAssetType`

2. Create as many **data-only** child BPs of _BP\_PawnDefinition_ as you want.  
 → These are your DataAssets, e.g. _DA\_PlayerPawn_, _DA\_EnemyPawn_, …  
 → The name of these BP assets is your `PrimaryAssetName`.  
 → Each asset now has a `PrimaryAssetId` like `BP_PawnDefinition:DA_PlayerPawn`  
 → Apparently these BPs must be **data-only** and should not have any functions. Don’t know what happens otherwise.

3. Update your asset manager settings as follows.  
 → Make sure that **Has Blueprint Classes** is checked!  

4. Restart the editor. Now you can load these blueprints as primary data assets.  
 → This is different from native DataAsset instances: Since Blueprints are technically classes and not objects, the usual “Async Load Primary Asset” node does _not_ work.  
 → Instead you have to _load the class_ → _cast the class_ → _get class defaults_ to get at the data within your data-only BP asset, like so:  

With the AssetManager in C++ you _have to_ use `UObject` as a template parameter. Weirdly `UPrimaryDataAsset` will not work. I assume that also here it is being treated like a class and not an instance of `UPrimaryDataAsset`.

```c++
const auto* MyBPDataOnlyAsset = UAssetManager::Get().GetPrimaryAssetObject<UObject>(Id);

```

Hope this helps. If anyone knows of a better way let me know! Be aware that I haven’t tested this thoroughly, but this seems to be the way it’s supposed to work (?)

Edit: I’ve experimented with this some more. Absolutely do not do this if you intend to e.g. load a data-only BP asset in C++ and then pass it over to Blueprint. This only really works if you intend to load the asset in Blueprint.

---

<div class="post-metadata">

**Author:** ![Ichduja](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ichduja](https://forums.unrealengine.com/u/Ichduja)\
**Post date:** [May 19, 2025, 11:22pm UTC](https://forums.unrealengine.com/t/setup-primary-assets-via-blueprint-for-asset-manager-scan/559269/15 "2025-05-19T23:22:13Z")

</div>

Works for me ,too Tanks Buddy!

Do someone knows to check also subfolders in BP? I just get the DA´s of the root directory i set, but nothing from the sub folders 😕

---

<div class="post-metadata">

**Author:** ![DimJimZ](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dimjimz/32/1103009_2.png) [@DimJimZ](https://forums.unrealengine.com/u/DimJimZ)\
**Post date:** [September 22, 2025, 10:57am UTC](https://forums.unrealengine.com/t/setup-primary-assets-via-blueprint-for-asset-manager-scan/559269/16 "2025-09-22T10:57:50Z")

</div>

You need to create Primary Asset Labels to do that.

PS: I kinda was looking into all the posts related to Google PAD and ended up making my own plugin to Mount and download Chunks.

Feel free to check it out: [Soft Object Path Tools | Fab](https://fab.com/s/fad2815e61b5)

---

<div class="post-metadata">

**Author:** ![Chaby1997](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chaby1997](https://forums.unrealengine.com/u/Chaby1997)\
**Post date:** [January 3, 2026, 3:21pm UTC](https://forums.unrealengine.com/t/setup-primary-assets-via-blueprint-for-asset-manager-scan/559269/17 "2026-01-03T15:21:30Z")

</div>

You helped me. You deserved a Noble Prize.
