Primary Data Asset not working in build game

Heya,

I´m listing all items which are based on a BP Primary Data Asset in my game. Its working flawless in editor and if i launch the game. But, If I make a build, all the items which have no hard references somewhere, are not listed anymore. Seems like a bug?

Not really. UE is basically using the reference viewer to determine what to pack.

If you have no references to your PDA, it decides not to pack it.

To get around it you can deliberately make a reference to it, like in an BP actor in a level.

Thanks for the answer! But wouldn´t the be against the architecture for Primary Data Assets? Like bringing new Assets into the game without referencing to it? If I do the theme based on a C++ Primary Data Asset, it actually working like intended.

I’m not entirely sure TBH. But that’s the main reason things get left out of a build :slight_smile:

Try to use Asset Manager in Project Settings. This provide cook your Data assets into build. But actually I have some problems with load it in first time.

1 Like