# How to set light color from the texture of the object located behind the light.

**URL:** <https://forums.unrealengine.com/t/how-to-set-light-color-from-the-texture-of-the-object-located-behind-the-light/1937955>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [July 15, 2024, 9:45am UTC](https://forums.unrealengine.com/t/how-to-set-light-color-from-the-texture-of-the-object-located-behind-the-light/1937955 "2024-07-15T09:45:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vonDiego](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vonDiego](https://forums.unrealengine.com/u/vonDiego)\
**Post date:** [July 15, 2024, 9:45am UTC](https://forums.unrealengine.com/t/how-to-set-light-color-from-the-texture-of-the-object-located-behind-the-light/1937955/1 "2024-07-15T09:45:04Z")

</div>

Hello,

I need to set the color of a spot light depending of the color texture (video texture) of the object located behind the instance of the spot light.

I’ve started to look the line trace node but I’m quite new to the blueprint game and I don’t know how to transmit the hit result to the light color parameter. Is it possible to target the UV coordinates of the object (plane) ? Can I get the color ? Is it even possible ?

Anyone can help me ?

Thanks.

---

<div class="post-metadata">

**Author:** ![PREDALIEN](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/predalien/32/1194670_2.png) [@PREDALIEN](https://forums.unrealengine.com/u/PREDALIEN)\
**Post date:** [July 15, 2024, 11:17am UTC](https://forums.unrealengine.com/t/how-to-set-light-color-from-the-texture-of-the-object-located-behind-the-light/1937955/2 "2024-07-15T11:17:48Z")

</div>

Look at [here](https://forums.unrealengine.com/t/reading-texture-color-data-using-uv-values/465888/15)

Looks like this is what you need.

---

<div class="post-metadata">

**Author:** ![vonDiego](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vonDiego](https://forums.unrealengine.com/u/vonDiego)\
**Post date:** [July 15, 2024, 6:45pm UTC](https://forums.unrealengine.com/t/how-to-set-light-color-from-the-texture-of-the-object-located-behind-the-light/1937955/3 "2024-07-15T18:45:53Z")

</div>

Thank you, i’ll give it a try and get you updated !

---

<div class="post-metadata">

**Author:** ![vonDiego](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vonDiego](https://forums.unrealengine.com/u/vonDiego)\
**Post date:** [July 15, 2024, 8:41pm UTC](https://forums.unrealengine.com/t/how-to-set-light-color-from-the-texture-of-the-object-located-behind-the-light/1937955/4 "2024-07-15T20:41:00Z")

</div>

It works perfectly ! Thank you very much for the hint 🙂

Have a good day.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [August 14, 2024, 8:41pm UTC](https://forums.unrealengine.com/t/how-to-set-light-color-from-the-texture-of-the-object-located-behind-the-light/1937955/5 "2024-08-14T20:41:34Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
