Animate the "bounds" of a material

Hello,

I got a material which is used on decals to simulate impacts on a wall.
I want to animate it, so when I spawn the decal, the “bounds” of my material expand to the max of my plane, then “close” toward the center.

I’d prefer not to use a texture for scalability.

I know I can do that by controlling the radius of a RadialExponentGradient (or something similar, I don’t remember the exact node name), but how do I keyframe this value in my material ?

You can use Time node to drive animation from within material.

Or you can have a scalar parameter in your material that controls the animation. Then when the decal spawns, get a reference to it, get it’s dynamic material and the you can Set Scalar Parameter on that material (using a timeline, for example).

It works. I use a blueprint that creates a dynamic instance and I change the radius parameter with a timeline. Those are awesome btw.