# Difference between RuntimeSpatialHash and RuntimeHashSet in WorldPartition

**URL:** <https://forums.unrealengine.com/t/difference-between-runtimespatialhash-and-runtimehashset-in-worldpartition/2559864>\
**Category:** World Creation\
**Tags:** unreal-engine, question, CPP\
**Created:** [June 16, 2025, 7:56am UTC](https://forums.unrealengine.com/t/difference-between-runtimespatialhash-and-runtimehashset-in-worldpartition/2559864 "2025-06-16T07:56:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anonymous\_105292a4196d5e0ae3f791888d9f14e2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_105292a4196d5e0ae3f791888d9f14e2](https://forums.unrealengine.com/u/Anonymous_105292a4196d5e0ae3f791888d9f14e2)\
**Post date:** [June 16, 2025, 7:56am UTC](https://forums.unrealengine.com/t/difference-between-runtimespatialhash-and-runtimehashset-in-worldpartition/2559864/1 "2025-06-16T07:56:32Z")

</div>

Both WorldPartitionRuntimeSpatialHash and WorldPartitionRuntimeHashSet seem to load Cells based on the loading range. What is the difference that makes them separate?

---

<div class="post-metadata">

**Author:** ![brs-sebascova](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brs-sebascova/32/1228079_2.png) [@brs-sebascova](https://forums.unrealengine.com/u/brs-sebascova)\
**Post date:** [June 16, 2025, 6:27pm UTC](https://forums.unrealengine.com/t/difference-between-runtimespatialhash-and-runtimehashset-in-worldpartition/2559864/2 "2025-06-16T18:27:07Z")

</div>

Hello there @Anonymous_105292a4196d5e0ae3f791888d9f14e2!

Indeed, both RuntimeSpatialHash and RuntimeHashSet are used for managing actors within the WP grid, it’s mostly a difference on how they handle data. RuntimeSpatialHash uses a cell grid to determine which actors are relevant at each location, while RuntimeHashSet uses a table for managing them, which translates to faster results in certain scenarios.

While RuntimeSpatialHash is used for large, open worlds, and divides the world in cells, where location/bounds of each actor are important, RuntimeHashSet is not spatial, it doesn’t care where the actors are, it just assigns function or behavior depending on which table they belong to.

For more info about WP, please check UE community documentation below:

> **[World Partition in Unreal Engine | Unreal Engine 5.6 Documentation | Epic...](https://dev.epicgames.com/documentation/en-us/unreal-engine/world-partition-in-unreal-engine)**
>
> An overview of the World Partition system and how to use it in your projects in Unreal Engine.

---

<div class="post-metadata">

**Author:** ![yayaya\_07011](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yayaya\_07011](https://forums.unrealengine.com/u/yayaya_07011)\
**Post date:** [August 7, 2025, 4:19pm UTC](https://forums.unrealengine.com/t/difference-between-runtimespatialhash-and-runtimehashset-in-worldpartition/2559864/3 "2025-08-07T16:19:29Z")

</div>

In Unreal Engine 5.6, there’s a clear distinction:

- If you use **WorldPartitionRuntimeSpatialHash** , the HLOD build always fails.
- If you use **WorldPartitionRuntimeHashSet** , the HLOD build succeeds, but during play in a packaged build it fails to unload cells and crashes.
