How to save randomly generated values in Blueprint?

Hey there,

I’m trying to make a spline (BP) that generates rocks along it procedurally.
The generation part is finished and I’m happy with it.
But the thing is, since it gets random values for things such as selection of rocks (from certain array elements), position and scale etc, the shape of the whole rocks changes everytime I make any changes or as I move the spline around.

I’d like to find a way to ‘save’ the whole shape of rocks (save the random values it gets at some point) and make it stay the same even though I move the spline around.

Thanks!

Hi jlnpark6469,

Random numbers are always the same - if you specify a constant Seed for the random generator, you will always get identical results.

You can develop your code to spawn the whole lot as static meshes ( on command ). Then save the level.