# UWorldPartitionBuilder's and modifying nested worlds 

**URL:** <https://forums.unrealengine.com/t/uworldpartitionbuilders-and-modifying-nested-worlds/2687743>\
**Category:** World Creation\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [November 20, 2025, 9:23pm UTC](https://forums.unrealengine.com/t/uworldpartitionbuilders-and-modifying-nested-worlds/2687743 "2025-11-20T21:23:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [November 20, 2025, 9:23pm UTC](https://forums.unrealengine.com/t/uworldpartitionbuilders-and-modifying-nested-worlds/2687743/1 "2025-11-20T21:23:37Z")

</div>

I’ve written a UWorldPartitionBuilder that functions as a world validation system for us, I wanted to integrate automatic fixups, and it’s kinda working. I’m able to loop over the actors in the current WP world and fix them up. However - if I grab the actors that are ALevelInstances, grab their world softobjectptr and then use it in a FScopedEditorWorld to open it up and attempt to make changes - those actors will fail to be savable. Even though I’ve tried about a million different ways it feels like to detatch the linkers to ensure it could move the old asset to tmp so it can write the new asset, it fails due to unable to being able to get a lock on the file, which means there’s still a file handle open. I \*suspect\* the WP system maintains locks on loaded sublevels in a way i don’t understand that’s preventing me from doing this.

I’d love any guidance on how I can solve this.

---

<div class="post-metadata">

**Author:** ![Svegn2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/svegn2/32/1225280_2.png) [@Svegn2](https://forums.unrealengine.com/u/Svegn2)\
**Post date:** [November 24, 2025, 3:31pm UTC](https://forums.unrealengine.com/t/uworldpartitionbuilders-and-modifying-nested-worlds/2687743/2 "2025-11-24T15:31:46Z")

</div>

Hi,

The team recommends loading and fixing the LevelInstance map as an extra step after the main WP level was GCed.

Martin

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [November 25, 2025, 4:44pm UTC](https://forums.unrealengine.com/t/uworldpartitionbuilders-and-modifying-nested-worlds/2687743/3 "2025-11-25T16:44:57Z")

</div>

Can that be done with the builder or do i need to write my own? It didnt seem like it, since the builder more or less appears to keep the main map open for the lifetime it’s alive.

---

<div class="post-metadata">

**Author:** ![Svegn2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/svegn2/32/1225280_2.png) [@Svegn2](https://forums.unrealengine.com/u/Svegn2)\
**Post date:** [November 26, 2025, 9:32pm UTC](https://forums.unrealengine.com/t/uworldpartitionbuilders-and-modifying-nested-worlds/2687743/4 "2025-11-26T21:32:35Z")

</div>

Your custom builder can GC the level once you are done with it. The HLOD builder (and others) use FWorldPartitionHelpers::DoCollectGarbage() as need to make sure that things are properly destroyed when required.

The extra step can either be part of the Builder implementation directly or it can leverage ShouldProcessAdditionalWorlds to use a different instance of the builder.
