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?
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: