How to fade the crosshair using materials?

Hello guys. I have created a sniper scope within unreal engine. what I want to do now is to fade the crosshair when the character is moving (similar to cs2) and I guess the best way to do it is to animate the crosshair using materials. But I don’t know how.

I also want to move the scope up and down (right and left) when the character is moving. I guess I could do it inside the UMG using animations. But if that also could be achieved via materials it would be awesome.

Yes with a parameter value plug in the opacity of the material.
Or via the animation widget but it does take more resource compared to material.

Material

BP example to control material parameters

1 Like

Oh wow. Thanks for your fast answer. I will do that and see what happens.

1 Like