I am trying to make my PCG graph run at runtime. It works perfectly in the editor and loads all my objects at the grid sizes I have specified, but the minute I hit play, it all disappears and nothing appears at runtime. I have these settings:
PCG Instance
“is partitioned” is enabled
“Generate at Runtime” set
PCG Graph
“Use Hierarchical Generation” enabled
PCG World Actor
“Treat Editor as Runtime Generation” enabled
I have tried adding a PCG Generation Source Component to my player controller and my character pawn, but it doesn’t work. I am very new to PCG, so I’m sure I’m just making a mistake or there’s something wrong with my settings. Any help would be greatly appreciated!!
I have the same problem in Unreal 5.6: The PCG with grass on GPU disappears during game startup and disappears in the viewport after a while and does not load when the project is restarted. If you update it, it appears again. Auto startup is enabled
Have you looked at the logs? Anything related to PCG?
If you are using cpu sampling from the landscape, it can be normal, because sampling on the landscape relies on the PCG landscape cache being serialized. In recent versions (5.5 or 5.6, I don’t remember) we’ve made it opt-in instead of opt-out, but there’s an error in the logs for it.
The PCG landscape cache resides on the PCG world actor fyi.