There are an unknown number of levels and each level may have associated with it a data table filled with useful information specific to that level.
A piece of code in the game instance would like to check if the current level has a data table associated with it (using a name or a label) and load it.
The project directory structure would look like this:
Game
|__ Data
|__ DataTable_Level_One
|__ DataTable_Level_Three
...
How can we load the data tables without using direct references or paths?
In the Asset Manager settings for the project, we can associate a label with the DataTable type and point to a directory:
We can create a FPrimaryAssetId but I’m not clear on how to do that, what it should contain and how to tag a data table to have the asset id of a level.
How can we check if a specific data table exists and load it using the asset manager in a way that works in both PIE and packaged games?
Is there a more straightforward way to get a data table based on a name or label that lives in a specified folder?
Ideally we would not assign assets but look for, and load, only the ones that are currently needed.
