Hello! I need to generate pcg on start the game depends on values in some config. For example, I want to set density value and generate points with this value.
Here the graph scheme.
In my C++ class I get values from config, set to graph parameter and call Generate() in BeginPlay().
GraphIns->SetGraphParameter(FName("TreeDensity"), tree_density_);
PCGComp->Cleanup();
PCGComp->GenerateLocal(true);
Graph Parameters correctly change (i checked by GetGraphParameter), but the result during simulation level or playing the package seems like it has some old cached parameters, or like Generate() really not regenerate anything. Sometimes in editor Hot Compile helps (but not everytime). In package it looks like it bakes parameteres during building and uses them.
Generation Trigger is Generate on Demand (or Generate at Runtime with the same result)