Using DataAssets with Procedural Generation: Auto-regeneration

Hi everyone,

I’m trying to use a PCGComponent with my own custom component that provides a DataAsset to the PCG Graph. Unfortunately though, the PCG only regenerates when I change the DataAsset reference, and only SOMETIMES changes when modifying the DataAsset itself. How can I change this so that modifying the DataAsset always regenerates the PCG Graph.

The Data Asset is an array of structs “S_PCGMeshSet” and a refresh string that is updated as a workaround to try force an update of the PCG Graph. Each “S_PCGMeshSet” has a name and an array of “S_PCGMesh” has a static mesh and a float for size. I randomly spawn one of the S_PCGMesh depending on the name of the S_PCGMeshSet

I’m trying to fiddle with OnRegister and PostEditChangeProperty as a workaround but it’s causing additional calls, and I would rather the Get Actor Parameter work properly.

My GetActorParameter settings:
Actor Filter: Parent
Include Children: False
Select Component: True
Component Class: “PCGMeshSet”
Property Name: “MeshDataAsset”
Extract Object and Struct: True
Always Requery Actors: True
Track Actors only within bounds: false