Get all Actors from mounted .pak
To support modding, I create .pak files manually from our ModKit. Those .pak files may contain Material/StaticMeshes/Sounds/Actors/...
I am able to mount/unmount the .pak files at runtime and pass the mount path to the AssetRegistry to add the data.
I'm able to get any Data-Asset using the AssetRegistry (Materials, Sounds, StaticMeshes, ...).
Trouble occours when going for blueprint generated actors. I found this tutorial for scanning a path for blueprint classes: http://kantandev.com/articles/finding-all-classes-blueprints-with-a-given-base
This works in editor and packaged build. However in a packaged build I'm only able to get Blueprint-Actors that are part of the main-pakfile. BlueprintGenerated actors from the runtime mounted pak are not returned from the asset registry. I opened the created .pak to make sure the BlueprintClasses are inside.
assetList does not contain the actors from the mounted .pak, they are not known to the AssetRegistry.
Any idea why?
Don't know why the AssetRegistry wouldn't find the classes. So I came up with a workaround.
This function makes use of some custom functions, but you get the idea. The function itself is expensive and should be run async.
Follow this question
Once you sign in you will be able to subscribe for any updates here