Spline object problem when changing dynamic material vectors in runtime

Hi,
I have a made a spline BP to set pipe segments (Static Mesh) in a row to make a winding long pipe. The color of the static mesh can be changed using a dynamic material and the Set vector parameter value node in the construction script using an array with different color vectors. 0= Green, 1=Blue, 2=Red, etc…

When I run the game and I update the dynamic material of the pipe in runtime it doesn’t make the whole pipe red or any other selected color, but rather gives each individual section of the spline a different color.

Why is this?

1 Like

Sounds like each segment has a separate DMI. Could you clarify how you assign the dynamic material? It should look close to:

Note the Create DMI node is outside the loop :point_up: so the entire pipe would use that one material, as opposed to:

Where you’d have as many material instances as there are pipe segments.