PCG Data Asset replaced by Transient

This question was created in reference to: [PCGLevelToAsset resets references to PCG Data Asset to transient [Content removed]

We have a similar issue since upgrading to 5.6.

I attached a repro crafted by our technical artist.

I believe wrt the other ticket that this may be fixed in 5.7, but we can’t upgrade for now. Could you point me to the commits or CLs I would need to backport the fix please ? Hopefully it is possible without too much conflicts.

[Attachment Removed]

Steps to Reproduce

  • Create and open EditorUtilityBLueprint
  • Add PCG Component
  • Add softobjectpath variable type: PCGDataAsset
  • Add Event to Flush PCG Cache at each PCG start
  • Open PCG Graph
    • add Create Points Grid
    • connect to Save PCG Dara Asset
    • set Path and Name
    • uncheck Open Save Dialog
  • Add BP to level
  • On BP set PCGDataAsset property with the one that has just been created
  • Move BP 2 times

Reference will be lost

[Attachment Removed]

Hi Antoine,

The changes are around the PCGAssetExporterUtils.cpp file - I think you’ll need just d4d190ce16c5feb65f20b5ad0d083c26e7e75478 to solve your issue.

Let me know if that doesn’t work.

Cheers,

Julien

[Attachment Removed]

Hi Julien, thanks, I did exactly that and we’re good.

[Attachment Removed]