Just for context, I'm new to modding in Satisfactory, though I have a background in C++ programming (that's my job) and a small background using UE5.
I wish to modify a mod I cloned from a git repository to "fix" the recipe cost for some building (I do not intend to reissue the mod on my own, I'll do a pull request when done, and the owner can chose to take it or not. Otherwise I'll keep this private).
The building in question is a beam, and I would like to have the cost compute per "section", and not per unit, as it is done for power lines and conveyor belts in vanilla.
That is, when building the .25m version of the beam, that it costs only 1 concrete instead of 4 when doing 1m of it (section of 4).
I checked the recipe and the descriptor / building for power lines, plus their stub C++ classes, but was not able to find a hint on how this is done so I could reproduce for said beam. Does someone know how I could implement that?