Changing multiple material instances scalar question

So I have a skeletal mesh with 27 bones/bodies, they are all placed in the shape of a circle and it acts as a suspension bubble for a vehicle. What I want to happen is, whenever a bone touches the ground, its material instance fades in then out with a scalar value. All the bones use a different instance of the same material. I am able to get the bone names when they hit something, and I can make all of the bones fade in or out at the same time, but I can not figure out how to make it only modify the scalar value of one of the material instances instead of all of them. If I used 25 different materials I think I could get it to work easy, but that seems expensive so I am trying to just use the same one.

My main question is whether or not its possible without creating separate materials, if it is possible I would really appreciate some help figuring it out.

Make a DMI for each leg.

When you make a dynamic material instance, you get a reference. Use this reference on the scalar parameter call, to specify which instance you’re talking to.

2 Likes

Tyvm for getting me on the right path, after many hours I have managed to accomplish this simple task.

2 Likes