# How to mask objects using a directional or spot light?

**URL:** <https://forums.unrealengine.com/t/how-to-mask-objects-using-a-directional-or-spot-light/1170423>\
**Category:** FX\
**Tags:** unreal-engine, question\
**Created:** [May 18, 2023, 9:15pm UTC](https://forums.unrealengine.com/t/how-to-mask-objects-using-a-directional-or-spot-light/1170423 "2023-05-18T21:15:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nanited\_Pepperjack](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nanited\_Pepperjack](https://forums.unrealengine.com/u/Nanited_Pepperjack)\
**Post date:** [May 18, 2023, 9:15pm UTC](https://forums.unrealengine.com/t/how-to-mask-objects-using-a-directional-or-spot-light/1170423/1 "2023-05-18T21:15:40Z")

</div>

I was curious, how would you go about using a light to mask an object? I came across this video ([UE4 Object Mask l Unreal Engine 4.26 (Tutorial) - YouTube](https://youtu.be/wJgT9s_SQaU?t=475)) and I was thinking: Would it be possible to use the rays of a light to mask out an object or am I overcomplicating things and is there a simpler way of doing something similar?

My usage case would be a light starts shining on a wall and where ever the light hits the wall becomes see-through and you can see things on the other side.

Any thoughts?
