# Get world settings from unopened umap

**URL:** <https://forums.unrealengine.com/t/get-world-settings-from-unopened-umap/462441>\
**Category:** World Creation\
**Tags:** World-Settings, Map, unreal-engine, menu, level, question, CPP\
**Created:** [March 13, 2020, 9:58pm UTC](https://forums.unrealengine.com/t/get-world-settings-from-unopened-umap/462441 "2020-03-13T21:58:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marmot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marmot/32/465476_2.png) [@Marmot](https://forums.unrealengine.com/u/Marmot)\
**Post date:** [March 13, 2020, 9:58pm UTC](https://forums.unrealengine.com/t/get-world-settings-from-unopened-umap/462441/1 "2020-03-13T21:58:13Z")

</div>

I have made an `AWorldSettings` class for my levels that contains information I want to store in them. When I’m in my level select menu I want to get that information from all the levels in the game so I can show information about them to the player in a list, so any `.umap` files in the levels folder or pak files show up in my list of levels.

 ![297838-world-settings.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/e/1ce960d7925ed9fc54e11180c5eae85d971af25c.jpeg)

How do I get this information from them all?

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [March 14, 2020, 12:04am UTC](https://forums.unrealengine.com/t/get-world-settings-from-unopened-umap/462441/2 "2020-03-14T00:04:15Z")

</div>

You can get ULevel of level in asset registry or soft pointer and from there you can access world settings

> **[ULevel::GetWorldSettings](https://docs.unrealengine.com/5.1/en-US/API/Runtime/Engine/Engine/ULevel/GetWorldSettings/)**
>
> Returns the world info for this level.

Problem is this require to load the level so not sure about performance matter

---

<div class="post-metadata">

**Author:** ![Marmot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marmot/32/465476_2.png) [@Marmot](https://forums.unrealengine.com/u/Marmot)\
**Post date:** [March 14, 2020, 5:05pm UTC](https://forums.unrealengine.com/t/get-world-settings-from-unopened-umap/462441/3 "2020-03-14T17:05:23Z")

</div>

Do you mean like this?

 ![297885-code.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/8/638cee5bb63461d25578840971a955661959d383.jpeg)

It doesn’t seem to find anything. Maybe I’m not using the right class name?

![297886-log.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/2/072d69b371364605fca485264cc6c30a36f7d877.jpeg)

---

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [March 17, 2020, 8:25pm UTC](https://forums.unrealengine.com/t/get-world-settings-from-unopened-umap/462441/4 "2020-03-17T20:25:48Z")

</div>

I think you’d be better off storing this metadata about the levels in an asset separate from the levels, so you don’t have to load the levels in order to access that data.

---

<div class="post-metadata">

**Author:** ![Marmot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marmot/32/465476_2.png) [@Marmot](https://forums.unrealengine.com/u/Marmot)\
**Post date:** [March 19, 2020, 11:34am UTC](https://forums.unrealengine.com/t/get-world-settings-from-unopened-umap/462441/5 "2020-03-19T11:34:13Z")

</div>

What would you suggest? I want the system to be dynamic, so you don’t have to manually add every level you want to show up to this list.

---

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [March 19, 2020, 3:26pm UTC](https://forums.unrealengine.com/t/get-world-settings-from-unopened-umap/462441/6 "2020-03-19T15:26:24Z")

</div>

I’m not sure, if that’s how you need it to work, but maybe you could have an automatic thing run in the Editor every time you open or save the level, which would update the data table or file or or default settings of object or whatever you’re storing, and save it. Then the level is already loaded into memory and you’ll be caching its last known settings for later runtime use, as I imagine these settings won’t be changing during runtime. If they are changing during runtime then I’m sadly quite lost as to what to do. Just some ideas though; I do think it’s possible to run something like upon level load or just before save automatically, perhaps even without changing the engine source code (just by means of a plugin or maybe even an editor utility blueprint), though I haven’t done anything like that myself.

---

<div class="post-metadata">

**Author:** ![Marmot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marmot/32/465476_2.png) [@Marmot](https://forums.unrealengine.com/u/Marmot)\
**Post date:** [March 29, 2020, 11:17am UTC](https://forums.unrealengine.com/t/get-world-settings-from-unopened-umap/462441/7 "2020-03-29T11:17:02Z")

</div>

Sorry for the late reply.

Yeah, that could actually work. I’ll see if I can do something with that. Thanks.
