# World Partition project packing error.

**URL:** <https://forums.unrealengine.com/t/world-partition-project-packing-error/2320476>\
**Category:** C++\
**Tags:** Shipping, unreal-engine, WorldPartition, Packaging, packaging-projects, question\
**Created:** [February 6, 2025, 5:31pm UTC](https://forums.unrealengine.com/t/world-partition-project-packing-error/2320476 "2025-02-06T17:31:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![InvisibleMan23](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/invisibleman23/32/88708_2.png) [@InvisibleMan23](https://forums.unrealengine.com/u/InvisibleMan23)\
**Post date:** [February 6, 2025, 5:31pm UTC](https://forums.unrealengine.com/t/world-partition-project-packing-error/2320476/1 "2025-02-06T17:31:04Z")

</div>

Hello, My game is open world and I use World Partition. To prevent important actors from being unloaded, I use the “bIsSpatiallyLoaded” parameter of the actor in the C++ constructor. Everything works, but when packing the project “Shipping” there will be a warning:  
error C2065: bIsSpatiallyLoaded: ��������� �����䨪���  
 ![Снимок экрана 2025-02-06 202333](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/5/8956a2d04e356d74148698345472192e702c8af8.png)

I also noticed that the engine marks this variable only for the editor?  
 ![Снимок экрана 2025-02-06 202539](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/6/4/864c460aee4015960daf3fd7ec8b1625503fbe3c.png)

 ![Снимок экрана 2025-02-06 202131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/e/5/3e57fafb383d9e95459fb2367695185055585193.png)

How to deal with this situation, is it an editor error?  
The same situation in version 5.5.

---

<div class="post-metadata">

**Author:** ![InvisibleMan23](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/invisibleman23/32/88708_2.png) [@InvisibleMan23](https://forums.unrealengine.com/u/InvisibleMan23)\
**Post date:** [February 7, 2025, 1:35pm UTC](https://forums.unrealengine.com/t/world-partition-project-packing-error/2320476/2 "2025-02-07T13:35:07Z")

</div>

In general, when setting the parameter, I used the same condition as in the editor, now it allowed me to pack my project without errors.

| | #if WITH\_EDITORONLY\_DATA |
| --- | --- |
| | SetIsSpatiallyLoaded(false); |
| | #endif |

 ![Снимок экрана 2025-02-07 162443](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/1/ae12950f1c86eff1b3dbec7eb0f0720bc1c92f6f.png)

Tests in the packed application are also performed correctly. 4 objects were placed with different loading methods (placement on the map and spawn when running the game). Except that when spawning objects, unloading them does not work, but that’s okay.

 ![Снимок экрана 2025-02-07 161544](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/4/7743633e706f206d92ce68343d3ca8c770e57d71.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [March 9, 2025, 1:35pm UTC](https://forums.unrealengine.com/t/world-partition-project-packing-error/2320476/3 "2025-03-09T13:35:29Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
