How can I scale a geometry collection using Construction Script and Dataflow?

I want to create a destructible wall of any length, but how can I freely scale a geometry collection?

I know that scaling on components doesn’t work.

Therefore, I tried overriding the dataflow variables in the Construction Script, but that doesn’t seem to work either.

Since it works when I manually change the data flow variables, I think it’s possible to input values ​​from an external source beforehand in some way.

Does anyone know how to make this work?

Hi

Geometry collection support uniform scale, while it may be possible to use non-uniform scaling in some case this may lead to problems with how the transforms and collision behave, so we do not recommend non uniform scaling

regarding your attempt to override the dataflow variables, asset dataflow graphs are used to generate asset at editor time, so overriding the variable at runtime will have no effect

For this kind of situation, I’d recommend building multiple walls that can be combined in a larger one ( let say size 8 / 4 / 2 / 1 ) that allow you to combine them to fit mostly any space
This has the advantage also to avoid having texture stretching and keep a more controlled art direction ( if that’s a point that matters in your case )

I hope this helps

Cedric