# How to fade the crosshair using materials?

**URL:** <https://forums.unrealengine.com/t/how-to-fade-the-crosshair-using-materials/2232257>\
**Category:** UI\
**Tags:** unreal-engine, question\
**Created:** [December 19, 2024, 3:46pm UTC](https://forums.unrealengine.com/t/how-to-fade-the-crosshair-using-materials/2232257 "2024-12-19T15:46:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![heretic133](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@heretic133](https://forums.unrealengine.com/u/heretic133)\
**Post date:** [December 19, 2024, 3:46pm UTC](https://forums.unrealengine.com/t/how-to-fade-the-crosshair-using-materials/2232257/1 "2024-12-19T15:46:05Z")

</div>

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.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/2/2/722c12de1f1677cb15659110b479c0b4c74fc91d.jpeg)

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.

---

<div class="post-metadata">

**Author:** ![Arodi007](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arodi007/32/1022275_2.png) [@Arodi007](https://forums.unrealengine.com/u/Arodi007)\
**Post date:** [December 19, 2024, 5:06pm UTC](https://forums.unrealengine.com/t/how-to-fade-the-crosshair-using-materials/2232257/2 "2024-12-19T17:06:55Z")

</div>

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

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/9/8e937a47cb7a98f9fb07eeebd3a13bd68700ec14.png)

BP example to control material parameters

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/8/fc85744289da86d1d083b60ee36e5c77a0a426ab.png)

---

<div class="post-metadata">

**Author:** ![heretic133](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@heretic133](https://forums.unrealengine.com/u/heretic133)\
**Post date:** [December 19, 2024, 5:28pm UTC](https://forums.unrealengine.com/t/how-to-fade-the-crosshair-using-materials/2232257/3 "2024-12-19T17:28:45Z")

</div>

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