How to set river width via blueprint

So I struggled with this for SO SO SO long. Like at least a day. and that isn’t meant to be sarcasm or arrogant. I mean I spent the whole day searching and looking and trying different nodes to get the data. An entire day spent on something like this is a costly thing in the world of content creation.

I realized a bit later that a depth/width/length are just dimensions… aka an actors dimensions, or SCALE!

So if you get a spline point by whatever means, like “get spline point at”, which uses the point’s index number, and then do a ‘break spline point’ node, and use the SCALE output pin to get the River’s depth/width/length at that spline point! The Scale X is the width, the Scale Y is the Height/Depth and Scale Z is always 1 I think since it’s the scale along the river, which is of course calculated from River spline component length divided by # spline points.

Anyway I hope this helps anyone trying to find the depth/width of the River via BP or something. I didn’t technically answer the question yet… because I can’t.

I have tried multiple methods of SETTING the width of the River via BP and nothing updates it. I don’t know if the scale is set by the River class itself and is otherwise Read only, or if I am missing something. Good luck. Sorry I haven’t looked at the C++ class yet for it to see if there is even a public SET method for the scale. Maybe it is only private and the width/depth need to be set a different way.

1 Like

Hey there @BKC_Labs! You’re correct with how you would edit the scale in editor, but the system isn’t meant to be adjusted at runtime, so the landscape brushes and similar effects won’t scale with the river itself even if you were to reach in and scale the spline itself.