# Loading and Saving a savegame with World Partition?

**URL:** <https://forums.unrealengine.com/t/loading-and-saving-a-savegame-with-world-partition/236062>\
**Category:** World Creation\
**Tags:** unreal-engine, UE5-0, WorldPartition\
**Created:** [June 18, 2021, 3:59am UTC](https://forums.unrealengine.com/t/loading-and-saving-a-savegame-with-world-partition/236062 "2021-06-18T03:59:46Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yaeko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yaeko](https://forums.unrealengine.com/u/Yaeko)\
**Post date:** [June 18, 2021, 3:59am UTC](https://forums.unrealengine.com/t/loading-and-saving-a-savegame-with-world-partition/236062/1 "2021-06-18T03:59:46Z")

</div>

So, going through the World Partition stream brought up more questions than it solved.

With Cells constantly being loaded/unloaded, how do we now save the state of the game, especially with multiple layers etc?

It would be quite annoying to have to track all actors and their state whenever a cell is loaded/unloaded, especially given that an actor might move from one cell to another.

---

<div class="post-metadata">

**Author:** ![Coral89](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Coral89](https://forums.unrealengine.com/u/Coral89)\
**Post date:** [September 5, 2021, 12:49am UTC](https://forums.unrealengine.com/t/loading-and-saving-a-savegame-with-world-partition/236062/2 "2021-09-05T00:49:24Z")

</div>

Hi!  
Thank you Yaeko  
I would also like to know the answer to this question. Is there some special setup we need to do to Save and Load stuff in the World Partition and Data Layers?  
For example, what if I move an actor from one data layer to another during gameplay, and I want to save which data layer he is currently in, as well as its position in the world?

---

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [September 5, 2021, 2:55am UTC](https://forums.unrealengine.com/t/loading-and-saving-a-savegame-with-world-partition/236062/3 "2021-09-05T02:55:58Z")

</div>

I have code in my save plugin now to save/load the state of data layers themselves.

But cannot access proxy actors that later load/unload the actual actors, outside the Editor I think all the API they built is private.

---

<div class="post-metadata">

**Author:** ![Yaeko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yaeko](https://forums.unrealengine.com/u/Yaeko)\
**Post date:** [April 9, 2022, 6:12pm UTC](https://forums.unrealengine.com/t/loading-and-saving-a-savegame-with-world-partition/236062/4 "2022-04-09T18:12:00Z")

</div>

This still is a big issue to me, since there is zero documentation regarding this.

Without some event that fires when a cell will become unloaded, I have no way of figuring out the stuff that needs to be collected for a future save-file.

EDIT: I mean, yes… i can just figure something out in terms of workaround, but tis dumb that no one thought about loading/saving with World Partition.

EDIT: DataLayer documentation is wrong too, the nodes dont exist in the engine. ( Get Actors from Data Layer)

> **[Data Layers](https://docs.unrealengine.com/5.0/en-US/BlueprintAPI/DataLayers/)**
>
> Data Layers

Guess I wont be using world partition then, or Data Layers, in its current state its unusable, due to the lack of tools to “deal with it”.

PS: Thanks bruno, but I dont use plugins at all - nothing against them, but I like to know whats going on because I built it myself 😛

---

<div class="post-metadata">

**Author:** ![Cpt.Trips](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cpt.Trips](https://forums.unrealengine.com/u/Cpt.Trips)\
**Post date:** [June 3, 2022, 10:54pm UTC](https://forums.unrealengine.com/t/loading-and-saving-a-savegame-with-world-partition/236062/5 "2022-06-03T22:54:53Z")

</div>

Did anything change in that regard?  
Are there events now to bind to on cell load / unload?

---

<div class="post-metadata">

**Author:** ![Yaeko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yaeko](https://forums.unrealengine.com/u/Yaeko)\
**Post date:** [June 4, 2022, 8:26am UTC](https://forums.unrealengine.com/t/loading-and-saving-a-savegame-with-world-partition/236062/6 "2022-06-04T08:26:42Z")

</div>

No idea, didnt check again, just went with the old level-system instead.

---

<div class="post-metadata">

**Author:** ![BlackIce979](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlackIce979](https://forums.unrealengine.com/u/BlackIce979)\
**Post date:** [June 19, 2022, 7:31pm UTC](https://forums.unrealengine.com/t/loading-and-saving-a-savegame-with-world-partition/236062/7 "2022-06-19T19:31:41Z")

</div>

While it’s not optimal for large amounts of items, the simple solution I found for items I want to save is to uncheck “Spatially Loaded” under World Partition category in the details panel. This seems to make the items persistent so that they can be referenced when re-loading the level. Hope this helps!

---

<div class="post-metadata">

**Author:** ![Yaeko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yaeko](https://forums.unrealengine.com/u/Yaeko)\
**Post date:** [June 20, 2022, 1:19am UTC](https://forums.unrealengine.com/t/loading-and-saving-a-savegame-with-world-partition/236062/8 "2022-06-20T01:19:21Z")

</div>

technically, there would be a way to control Data Layers like levels, but many of the relevant nodes are only in the documentation, they dont exist in the engine.

> **[Data Layers](https://docs.unrealengine.com/5.0/en-US/BlueprintAPI/DataLayers/)**
>
> Data Layers

only some of them can be found, and only after turning off context sensitivity - its a complete mess.

I have zero clue on how any of this is supposed to work, when the nodes cant be accessed.

EDIT: I mean, I am aware that some things dont work in a Function for example, but _where_ are these nodes supposed to be used - especially the missing ones, like “get actors from data layer”… which is what could be easily used to save stuff.

I also checked YouTube already, couldnt find a single video explaining this, they all just go over “how to add data layer to the list”.

---

<div class="post-metadata">

**Author:** ![kvickerz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kvickerz/32/1016121_2.png) [@kvickerz](https://forums.unrealengine.com/u/kvickerz)\
**Post date:** [June 20, 2022, 3:20pm UTC](https://forums.unrealengine.com/t/loading-and-saving-a-savegame-with-world-partition/236062/9 "2022-06-20T15:20:32Z")

</div>

I was digging into this recently, all the functions you would need to set this up are still not part of a publicly exposed API. I’m hoping someone adds this soon as it wouldn’t be much work, i’d rather not have to resort to creating a source build just to add some API macros and mark things public.

Also having a way to correctly move items either between different cell sublevels or into the persistent level would be useful

---

<div class="post-metadata">

**Author:** ![Yaeko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yaeko](https://forums.unrealengine.com/u/Yaeko)\
**Post date:** [June 21, 2022, 1:16am UTC](https://forums.unrealengine.com/t/loading-and-saving-a-savegame-with-world-partition/236062/10 "2022-06-21T01:16:14Z")

</div>

that explains my findings (or the lack thereof), I guess.

Meh, maybe 5.1 will have them public.

---

<div class="post-metadata">

**Author:** ![kvickerz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kvickerz/32/1016121_2.png) [@kvickerz](https://forums.unrealengine.com/u/kvickerz)\
**Post date:** [June 21, 2022, 2:58am UTC](https://forums.unrealengine.com/t/loading-and-saving-a-savegame-with-world-partition/236062/11 "2022-06-21T02:58:57Z")

</div>

Let me know if you find any useful resources on this as it’s becoming a bottleneck in my project for various different features. I’ve been looking for good solutions for a while now.

On EndPlay there is a parameter with an enum passed through as to the reason why the actor has been ended, EEndPlayReason::RemovedFromWorld is one of those reasons. I haven’t gone down the train of thought to apply this to solving this problem so maybe there is a solution here.

Though I would still prefer to just be able to get a OnCellUnloaded/Loaded callback from the world partition subsystem or something similar and be able to get a list of all actors within that cell.

---

<div class="post-metadata">

**Author:** ![Killerzwerg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Killerzwerg](https://forums.unrealengine.com/u/Killerzwerg)\
**Post date:** [June 21, 2022, 4:26pm UTC](https://forums.unrealengine.com/t/loading-and-saving-a-savegame-with-world-partition/236062/12 "2022-06-21T16:26:58Z")

</div>

> [@Yaeko](#):
>
> EDIT: DataLayer documentation is wrong too, the nodes dont exist in the engine. ( Get Actors from Data Layer)

It´s Editor only, not runtime.

For “GetActorsFromDataLayer” you are using the “DataLayerEditorSubsystem”…  
While for the BP-Nodes which are available, you are just using the “DataLayerSubsystem” (without Editor) ^^

Check those links for the difference:

> **[Get Data Layer](https://docs.unrealengine.com/5.0/en-US/BlueprintAPI/DataLayers/GetDataLayer/)**
>
> Get Data Layer

> **[Get Actors from Data Layers](https://docs.unrealengine.com/5.0/en-US/BlueprintAPI/DataLayers/GetActorsfromDataLayers/)**
>
> Get Actors from Data Layers

I don´t know why they are editor-only, because it would be a high performance-boost, if you could add actors to data layers at runtime…

---

<div class="post-metadata">

**Author:** ![Zorthos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zorthos](https://forums.unrealengine.com/u/Zorthos)\
**Post date:** [May 16, 2023, 11:09am UTC](https://forums.unrealengine.com/t/loading-and-saving-a-savegame-with-world-partition/236062/13 "2023-05-16T11:09:56Z")

</div>

5.2 has just been released and as far as I can tell you still cannot access actors in a data layer or find actors by data layer in Blueprint.

I just went looking to see how you can access these nodes and I can’t find a blueprint I can use these nodes in.

---

<div class="post-metadata">

**Author:** ![Yaeko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yaeko](https://forums.unrealengine.com/u/Yaeko)\
**Post date:** [May 18, 2023, 3:02pm UTC](https://forums.unrealengine.com/t/loading-and-saving-a-savegame-with-world-partition/236062/14 "2023-05-18T15:02:17Z")

</div>

So, data-layers are still kinda “useless” aside from streaming in/out backrund elements for a game?

meh, hopefully the (existing) nodes will become accessible soon.

Or are we missing something?  
Is it just the documentation that has flaws?

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [May 18, 2023, 8:18pm UTC](https://forums.unrealengine.com/t/loading-and-saving-a-savegame-with-world-partition/236062/15 "2023-05-18T20:18:18Z")

</div>

I would just levarage gameplay tags. Path of least resistence.

You can likely have the datalayer name automatically populate as a gamplay tag.  
Then you can select all the actors with that gameplay tag…

You may need to work at it a bit to make it feasible, but it should be easier than waiting forever for a fix you won’t get…

---

<div class="post-metadata">

**Author:** ![Yaeko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yaeko](https://forums.unrealengine.com/u/Yaeko)\
**Post date:** [May 18, 2023, 9:38pm UTC](https://forums.unrealengine.com/t/loading-and-saving-a-savegame-with-world-partition/236062/16 "2023-05-18T21:38:02Z")

</div>

but the problem isnt located at “knowing which actor”, its the “when”. (It is more a world-partition problem than the datalayers themselves.)

But yes, your input should work.

That said, all of this could be automated by the engine, if it would tell us when it loads/unloads a cell.

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [May 19, 2023, 12:08am UTC](https://forums.unrealengine.com/t/loading-and-saving-a-savegame-with-world-partition/236062/17 "2023-05-19T00:08:23Z")

</div>

> [@Yaeko](#):
>
> all of this could be automated by the engine, if it would tell us when it loads/unloads a cell.

Without digging into the source yourself that isn’t likely to happen soon.  
You can probably make a custom plugin to expose this functionality after examining how the stuff is loaded/unloaded - assuming it is at all accessible/kept track of.

If it isn’t, the issue is far more complex as youd need to add a system to keep track of it.

The gameplay tags ideally cut to the second situation ignoring the digging and just flat out assume that nothing is kept track of.

I’d probably add an oncreate event to flag the gameplay tag in some creative way whenever the actor is loaded.  
Sruff loads over async (i hope ffs?) however, so its not like a “race condition” is going to be able to tell you what data layer loaded what.  
Youd have to query the data layer name from the actor loading on creation, or something around those lines…

Naming data layers the same as landscape tiles and or whatever the actor “stands” on which loads along with the data layer could be a quick way to figure out where the actor was first instantiated for instance.  
It would basically require just 1 additional invisible mesh that you can do a single line trace down to every so often until it actually exists - get a name back, and disable the trace system.  
Clunky af. But its a start towards something…

---

<div class="post-metadata">

**Author:** ![RowelCaps](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RowelCaps](https://forums.unrealengine.com/u/RowelCaps)\
**Post date:** [September 12, 2023, 10:37am UTC](https://forums.unrealengine.com/t/loading-and-saving-a-savegame-with-world-partition/236062/18 "2023-09-12T10:37:55Z")

</div>

You guys should check out the Valley of the ancient, I’ve been looking for answers about making a call back when unloading and activating data layers and stumbled upon how they made the loading screen on the transitioning to the dark world.

I’m still wrapping my head around it, So I can’t say for sure this is the answer but It’s a good start.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/6/9/e69b3cdb7e4ba1d04c419bed3995bf53d23da46a.png)

Now that I’ve been working on data layers, I’ve also created an Actor that tracks other actors of interest within that data layer. I used that to handle every query that I needed. It’s a matter of passing and receiving data from that actor.

I’ve only started using data layers, I’m still trying to learn it. So this might not be the answer but I hope this helps.

---

<div class="post-metadata">

**Author:** ![JendiaStudios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JendiaStudios](https://forums.unrealengine.com/u/JendiaStudios)\
**Post date:** [March 25, 2025, 11:15pm UTC](https://forums.unrealengine.com/t/loading-and-saving-a-savegame-with-world-partition/236062/19 "2025-03-25T23:15:01Z")

</div>

Data Layers have been incomplete for a long time, with many necessary functions only available in the Editor Subsystem and many more not available anywhere. For example, there is no way to load data layers asynchronously in the background. That means that if you want for assets to load gradually in the background, it won’t happen. Instead the game will stall and block the whole main thread if your machine can’t keep up.

We also looked up how Valley of the Ancient handled loading/activating Data Layers and how it signaled when the process was finished. Basically, the demo puts everything on pause (with a fade to white screen) while the loading happens. When it’s done, it fades out of white. Not a very robust feature.

This Data Layer solution was advertised nearly 3 years ago as a mature replacement for Level Streaming in an Open World concept, yet all these years later it is still technically less capable than Unreal Engine 4’s Level Streaming functions.

> [@How to check if a Data Layer has finished loading all actors into a level](https://forums.unrealengine.com/t/how-to-check-if-a-data-layer-has-finished-loading-all-actors-into-a-level/1670868/9):
>
> Sharing a Blueprint solution that’s based on how Valley of the Ancient did it. Unreal has since deprecated DataLayerSubsystem (it’s still there in 5.3) and replaced it with the DataLayerManager, whose SetDataLayerRuntimeState uses Data Layer Asset objects instead of Actor Data Layer structs. Because WorldPartitionStreamingQuerySource uses Data Layer names, it’s quite easy to get that from Actor Data Layer structs. We haven’t yet figured out how to get names from Data Layer Asset objec…

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [March 26, 2025, 12:04am UTC](https://forums.unrealengine.com/t/loading-and-saving-a-savegame-with-world-partition/236062/20 "2025-03-26T00:04:16Z")

</div>

Since when is anything epic makes ready for market?
