Hello there, I’m trying to create a procedural railroad simulator that travels through 3 different small environments along a spline. I want my train to start in a green forest(30%), then travel through a small transition area (5%), then travel through a dark, barren forest(30%), then another transition area(5%) and end up in a weird forest(30%). I was successful in creating a consistent railroad track that goes throughout the whole length of my spline. However I am struggling to map said 3 environments along my railroad spline accordingly.
So my question is: How can I divide the full length of my spline in percentages (i.e. here 30%/5 %/30%/5%/30%) and generate a number of static meshes along a specific percentage length of said spline? I am fairly new to Unreal Engine and BP/PCG content generation, so any help advice would be highly appreciated!