# Pcg on demand not working on a packaged build

**URL:** <https://forums.unrealengine.com/t/pcg-on-demand-not-working-on-a-packaged-build/2095417>\
**Category:** Blueprint\
**Tags:** Procedural-Generation, unreal-engine, packaged-game, question, Blueprint\
**Created:** [October 30, 2024, 8:28am UTC](https://forums.unrealengine.com/t/pcg-on-demand-not-working-on-a-packaged-build/2095417 "2024-10-30T08:28:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SkullRipper999](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SkullRipper999](https://forums.unrealengine.com/u/SkullRipper999)\
**Post date:** [October 30, 2024, 8:28am UTC](https://forums.unrealengine.com/t/pcg-on-demand-not-working-on-a-packaged-build/2095417/1 "2024-10-30T08:28:39Z")

</div>

Hi,

I have a c++ project started in 5.2.1 ported to 5.4.4, where I also use pcg. Actor with pcg component also has a spline, actors need to generate within that spline. User can dynamically change locations of spline points and pcg needs to regenerate according to that. Pcg works perfectly in the editor, but not in a packaged game. Spline points reposition, regeneration is triggered, but pcg still takes in account the original location of the spline points, not updated one. It was same way in editor until I added node “Notify properties changed from blueprint”. Now with it, it works in the editor, but not in the package. Hope anyone can give me an advice on this. Thank you in advance.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/1/da15483e06bc811662df50d58a260d1c6a865ab6.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/4/2/342dcfa25a91669d04178fce73bde1dc5d110182.png)

---

<div class="post-metadata">

**Author:** ![TJBlauk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TJBlauk](https://forums.unrealengine.com/u/TJBlauk)\
**Post date:** [April 15, 2025, 2:25pm UTC](https://forums.unrealengine.com/t/pcg-on-demand-not-working-on-a-packaged-build/2095417/2 "2025-04-15T14:25:18Z")

</div>

I have pretty much the same problem in UE5.4 did you find a solution for this?

---

<div class="post-metadata">

**Author:** ![Fedotich](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fedotich](https://forums.unrealengine.com/u/Fedotich)\
**Post date:** [April 24, 2025, 9:41pm UTC](https://forums.unrealengine.com/t/pcg-on-demand-not-working-on-a-packaged-build/2095417/3 "2025-04-24T21:41:40Z")

</div>

Any updates? I have the same problem UE 5.5.4

UPD: My PCG was partly working the issue was in PCG switch node: [PCG switch on enum is broken?](https://forums.unrealengine.com/t/pcg-switch-on-enum-is-broken/2476947)

---

<div class="post-metadata">

**Author:** ![liuchenyigh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@liuchenyigh](https://forums.unrealengine.com/u/liuchenyigh)\
**Post date:** [April 29, 2025, 1:22pm UTC](https://forums.unrealengine.com/t/pcg-on-demand-not-working-on-a-packaged-build/2095417/4 "2025-04-29T13:22:35Z")

</div>

same problem in UE 5.5.4

---

<div class="post-metadata">

**Author:** ![CHADALAK1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CHADALAK1](https://forums.unrealengine.com/u/CHADALAK1)\
**Post date:** [June 21, 2025, 7:55am UTC](https://forums.unrealengine.com/t/pcg-on-demand-not-working-on-a-packaged-build/2095417/5 "2025-06-21T07:55:04Z")

</div>

Not sure if anyone has managed to resolve this issue? Has it been fixed in 5.6?

---

<div class="post-metadata">

**Author:** ![CHADALAK1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CHADALAK1](https://forums.unrealengine.com/u/CHADALAK1)\
**Post date:** [June 21, 2025, 2:23pm UTC](https://forums.unrealengine.com/t/pcg-on-demand-not-working-on-a-packaged-build/2095417/6 "2025-06-21T14:23:27Z")

</div>

Soo If you’re trying to generate PCG on Static Meshes, what is required is to make the static mesh ‘Allow CPU Access’. Pretty much open the asset(s) and checkbox ‘Allow CPU Access’.

Had to find that out to finally find a message like this on a package build

```auto
StaticMesh bAllowCPUAccess must be set to true to read mesh data at Runtime

```

Hope this helps out anyone trying to figure this out
