Randomizing Static Meshes in a single Blueprint

Hey Guys!
Im new to the UnrealEngine, so naturally i just picked some Youtube tutorial about an “endless” running game on the Unreal Youtube Channel to work on:
(Endless Runner: Overview & Player Control | 01 | v4.7 Tutorial Series | Unreal Engine - YouTube ; Video 2).
After setting up all of the Basics, i wanted a little more variation in the tiles used for the map, since its pretty repetitive otherwise! The road is always spawned in, so only the tree-tiles should vary (ground+trees as one mesh)

So my Question is: Where do i attach my Mesh-Array to add more different environment tiles? Or do i just use multiple Blueprints, then randomize it in the GameMode?

Thanks in advance!

You’ve got the right idea. When you get near then end of your road mesh and hit a collision volume, spawn in the next mesh. It’s just another copy of the same blueprint which chooses a random mesh from an array, just like you’ve started doing there.

You can have an array of tree meshes, and you just which one to show using RandomIntegerInRange.

I worked it out! Thanks for the answer! :slight_smile:
Different Materials for better visual clarity.

This is what it looks like in the Blueprint:

Ok, great. But you’re adding them at the start there. I was assuming ( being an infinite runner ) you’d want to add them at runtime.

Very similar concept though…