Retrieving metadata from Level/Maps

I’m having a hard time finding out what is standard practice for storing metadata about levels/maps.

For instance, we would like to create a map for Mogadishu, Somalia. I would like to store the following data, city name, country name, latitude, longitude, and an aerial shot to be used for minimaps or other maps.

Is there a standard location to store this data? I know that I can create a custom AActor class and then drop it into the level, but is that standard practice or is there some other class that I don’t know about?

Thanks,
Kory

Hello,

i believe you could store these in level script Blueprint. You can get level script actor using UWorld::GetLevelScriptActor(), level script actor class could be changed in project settings under general settings category.

Thanks for the hint, it led me to this: https://wiki.unrealengine.com/Solus_C%2B%2B_Tutorials

Which basically you need to do the following:



[/Script/Engine.Engine]
;LevelScriptActorClassName=/Script/Engine.LevelScriptActor
LevelScriptActorClassName=/Script/MyGame.MyGameLevelScriptActor


Then every map you make will derive from your AMyGameLevelScriptActor class where you can store the metadata for your level / map.

Thanks again!