# How to automatically unload distant HLODs in World Partition?

**URL:** <https://forums.unrealengine.com/t/how-to-automatically-unload-distant-hlods-in-world-partition/2529831>\
**Category:** World Creation\
**Tags:** Level-Streaming, unreal-engine, WorldPartition, question\
**Created:** [May 27, 2025, 8:35am UTC](https://forums.unrealengine.com/t/how-to-automatically-unload-distant-hlods-in-world-partition/2529831 "2025-05-27T08:35:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![useronym](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@useronym](https://forums.unrealengine.com/u/useronym)\
**Post date:** [May 27, 2025, 8:35am UTC](https://forums.unrealengine.com/t/how-to-automatically-unload-distant-hlods-in-world-partition/2529831/1 "2025-05-27T08:35:29Z")

</div>

Hello, I can’t for the life of me figure out how to not have all HLODs loaded all the time.

I set up an HLOD layer `HLOD_Static` for my static mesh actors that merges their lowest LODs in the respective grid cells, and assign a parent HLOD layer `HLOD_Merged` that the merged actors / HLODs receive.

 ![bilde](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/d/6/cd6e1dadfab0e636f9600f97081e42743ec922b6.png)

All my HLODs are put into the `HLOD_Merged`, but there is a problem: all the HLODs in the distance are loaded constantly regardless of distance to a streaming source.

I enable `Is Spatially Loaded` on `HLOD_Merged` layer, but this makes no difference.

 ![bilde](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/a/8fac9ce6419e2bbc28083b556ab14cb8502a889f.png)

How can I unload distant HLODs?

---

<div class="post-metadata">

**Author:** ![useronym](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@useronym](https://forums.unrealengine.com/u/useronym)\
**Post date:** [June 3, 2025, 6:59am UTC](https://forums.unrealengine.com/t/how-to-automatically-unload-distant-hlods-in-world-partition/2529831/2 "2025-06-03T06:59:15Z")

</div>

It took a lot of experimentation, but I figured it out.

The solution is to change the runtime hash class to `WorldPartitionRuntimeSpatialHash` instead of the default `WorldPartitionRuntimeHashSet`.

The difference between these two is not documented anywhere as far as I can tell, but this change made world partition behave the way I want for me.

And I only needed a single HLOD Layer.

The `Loading Range` in the HLOD layer then controls at which distance are the HLODs loaded in.  
`Loading Range` in World settings controls at which distance are the actual actors loaded in, replacing the HLOD.
