# How to get the Opacity Mask in Blueprint?

**URL:** <https://forums.unrealengine.com/t/how-to-get-the-opacity-mask-in-blueprint/1268037>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [August 21, 2023, 6:18pm UTC](https://forums.unrealengine.com/t/how-to-get-the-opacity-mask-in-blueprint/1268037 "2023-08-21T18:18:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bostonDownamics](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bostonDownamics](https://forums.unrealengine.com/u/bostonDownamics)\
**Post date:** [August 21, 2023, 6:18pm UTC](https://forums.unrealengine.com/t/how-to-get-the-opacity-mask-in-blueprint/1268037/1 "2023-08-21T18:18:28Z")

</div>

I’m trying to render the Opacity Mask into a render target to see if the object that I’m clicking is visible or not, but it seems that using the Get Material node only returns the Emissive.

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/7/907df64d40f8fc74c0b4e7991894a49c15d07105.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/7/907df64d40f8fc74c0b4e7991894a49c15d07105.mp4)
  
 ![Untitled4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/f/c/5fc3557ad2a4117165ea57ef4561d68ea18f8a2f.png)  
 ![Untitled5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/9/9/99956e3131cd53056f37c124dfddb487fae61c2b.png)  
 ![Untitled6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/1/0e1dd257963bc489e67b5f7a88b2cabbeb8d31b3.png)

I can see that there seems to be a way in [C++](https://forums.unrealengine.com/t/get-opacity-mask-from-material-in-c/374320) but that’s out of my league.  
If I put the Base Color of the Cylinder Material into the Emissive then it shows a flat pink shade.

I want to get the Opacity Mask and the Opacity into the Render Target so that I can do [this](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/a/2da44bc215660973f7931109957cab4a9eea0cf9.png) from this question [How to make Line Trace ignoring transparent part of a texture? - #4 by Marcis](https://forums.unrealengine.com/t/how-to-make-line-trace-ignoring-transparent-part-of-a-texture/466394/4).
