How to smoothly transition from one material to another via blueprints

So I have a mesh that when it’s interacted with I want it to change materials (single use button) to signify that it’s been used. I have a strong suspicion that it’s possible to use a timeline to transition between the materials (like changing the opacity of it to reveal the second or change the saturation) but I haven’t been able to figure it out. :frowning:

Is this only possible with textures? I found this, but I don’t think it would help much with materials. LERP between two materials? - Rendering - Epic Developer Community Forums

Does anyone have any ideas or pointers that could guide me in the correct direction?

Many thanks!

1 Like

Just for clarity: Are you wanting to change the material on the object after its been interacted with to indicate its been “used” basically?

If you’re just looking to change the material in BP based on use. I assume that you’ve declared a use button, for this example I will use E. If so, just get the object from the level (in your level blueprint, for example - or make a BP on the object itself, so it will be easier to instance, then reference your use button to activate it), get a Set Material node, hook it up as target, and then set the material you want to use in the dropdown.

Here’s a very basic example. Hope this helps, if not, let me know. Good Luck!

Hi!

If you want to get something like this:

You can do this with a Layered Shader.

This is BP for simple example.

Correct :slight_smile:

I’ve looked into that and doing it this way does work but it snap changes the material. What I’m trying to do is transition between the smoothly if possible so that it’s not as sudden of a change. This is what I currently have atm I’m using a lerp to blend between to textures in the same material.

Thanks for the idea! I never knew about layered materials :smiley:

Thanks for this, it worked great! Used it to blend character from human skintone to metal alien skin and back.

Will this work if the two materials are different? Like one is translucent and the other is opaque?