I feel like I’m trying to achieve a very simple thing but can’t find a way how to make Unreal do it.
For every map (world/level) I’d like to have some config variables which I’d like to access before the player loads it from a dynamic map selection in main menu. (Mostly importantly MaxPlayers, specifying how many spawn points are there, to show appropriate number of player slots in a game lobby)
Basically load some data/metadata from the Level file while being in another level (main menu).
I tried adding game tags to the map and reading them with Asset Manager, or finding a way to cast to the map’s blueprint, nothing worked.
I’d like to avoid making a list of all maps and additional files for something that simple, a single variable which should be directly tied to the map file.
Thanks, that sounds like what I need, but unfortunately I would have to learn C++ to even do the first point on your list. Meanwhile I’ve found a solution which is fairly straight forward, although it requires an additional file. I’ll post it as an answer.