# Collection Manager's Get Assets in Collection always returns an empty array 

**URL:** <https://forums.unrealengine.com/t/collection-managers-get-assets-in-collection-always-returns-an-empty-array/2839664>\
**Category:** Pipeline & Plugins\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [September 4, 2026, 1:36am UTC](https://forums.unrealengine.com/t/collection-managers-get-assets-in-collection-always-returns-an-empty-array/2839664 "2026-09-04T01:36:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [September 4, 2026, 1:36am UTC](https://forums.unrealengine.com/t/collection-managers-get-assets-in-collection-always-returns-an-empty-array/2839664/1 "2026-09-04T01:36:32Z")

</div>

In our project we have both standard and dynamic collections. I am writing an editor utility that needs to get the assets from these collections. This works fine for the standard collections, returning an array with the asset datas I expect. However, this always returns 0 results for all dynamic collections (tested with dozens of regular and dynamic queries). I have tried in both blueprint and python and get the same result in both.

Is there some sort of invocation of TestDynamicQuery() I should perform, and if so, how can I do that from blueprint/python? I could not see anything exposed to me like that. Alternatively, is this simply a bug, and I should expect Get Assets in Collection to handle this for me?

Thanks in advance,

Mike

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [September 4, 2026, 1:36am UTC](https://forums.unrealengine.com/t/collection-managers-get-assets-in-collection-always-returns-an-empty-array/2839664/2 "2026-09-04T01:36:35Z")

</div>

**Steps to Reproduce**  
Create a Dynamic Collection (here mine is called \_Foliage\_Main and a query like

!VFX AND (Path:‘/All/Game/VEG’…) Type=StaticMesh

Construct an editor utility blueprint as follows

The following blueprint prints:

LogBlueprintUserMessages: [None] \_Foliage\_Main - true - 0

 ![image.png.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/4/af4bf582b952991568eac469ec174d9b26d51514.png)

Alternatively, create an editor utility blueprint and invoke the following via Python Execute Script

This will print (note RegularCollection1 and 2 are non-dynamic collections with 1 and 2 assets respectively), and show that this works fine for them):

LogPython: RegularCollection1 =\> 1

LogPython: RegularCollection2 =\> 2

LogPython: \_Foliage\_Main =\> 0

```auto
import unreal

cm = unreal.get_editor_subsystem(unreal.CollectionManagerSubsystem)
container = cm.get_base_game_collection_container()
print("Container:", container)
collections = cm.get_collections(container)

for c in collections:
  assets = cm.get_assets_in_collection(c)
  print(c.name, "=>", len(assets))

```

---

<div class="post-metadata">

**Author:** ![Cody.Albert](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cody.albert/32/1088813_2.png) [@Cody.Albert](https://forums.unrealengine.com/u/Cody.Albert)\
**Post date:** [September 12, 2026, 10:20am UTC](https://forums.unrealengine.com/t/collection-managers-get-assets-in-collection-always-returns-an-empty-array/2839664/3 "2026-09-12T10:20:18Z")

</div>

Hi,

It looks like the current implementation of GetAssetsInCollection doesn’t handle dynamic collections at all. You could work around this with a bit of C++ in a blueprint function library, something like this should work:

```auto
TArray<FAssetData> GetAssetsInDynamicCollection(FName Name, ECollectionShareType::Type ShareType)
{
    TSharedRef<ICollectionContainer> Container =
        FCollectionManagerModule::GetModule().Get().GetProjectCollectionContainer();
 
    TArray<FAssetData> AllAssets;
    IAssetRegistry::Get()->GetAssets(FARFilter(), AllAssets);
 
    TArray<FAssetData> Result;
    for (const FAssetData& Asset : AllAssets)
    {
        FAssetTextFilterContext Context(Asset);
        bool bPasses = false;
        if (Container->TestDynamicQuery(Name, ShareType, Context, bPasses) && bPasses)
        {
            Result.Add(Asset);
        }
    }
    return Result;
}

```

I’ve filed a bug report for this as well if you want to keep an eye on that for a potential fix, [UE-396182](https://issues.unrealengine.com/issue/UE-396182).

Best,

Cody

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [September 22, 2026, 7:46pm UTC](https://forums.unrealengine.com/t/collection-managers-get-assets-in-collection-always-returns-an-empty-array/2839664/4 "2026-09-22T19:46:52Z")

</div>

Thanks Cody! We’re going to give this a try and will report back here.
