# Reading texture color data using UV values

**URL:** <https://forums.unrealengine.com/t/reading-texture-color-data-using-uv-values/465888>\
**Category:** Rendering\
**Tags:** line-trace, uv, unreal-engine, color, question\
**Created:** [May 27, 2020, 4:15pm UTC](https://forums.unrealengine.com/t/reading-texture-color-data-using-uv-values/465888 "2020-05-27T16:15:12Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![anonymous\_user\_882d813f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_882d813f](https://forums.unrealengine.com/u/anonymous_user_882d813f)\
**Post date:** [June 9, 2020, 1:15am UTC](https://forums.unrealengine.com/t/reading-texture-color-data-using-uv-values/465888/15 "2020-06-09T01:15:06Z")

</div>

Here is an solution:

 ![303902-gettingalphavialinetrace.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/a/2da44bc215660973f7931109957cab4a9eea0cf9.png)

Notice you should have “Trace Complex” and “Support UV From Hit Result” check-boxes turned ON both!  
“Trace Complex” check box is in your Line Trace node.  
“Support UV From Hit Result” you can find in: Setting\>Physics\>Optimization\>Support UV From Hit Result.

> **[How to make Line Trace ignoring transparent part of a texture?](https://forums.unrealengine.com/questions/964208/view.html)**
>
> Using a sprite-based enemies like in old games. Tracing a sprite via Line Trace (sprite have an alpha channel for translucency). The Line Trace is hitting the whole sprite no matter whether it a transparent space or visible. How to ignore...

---

_[View the full topic](https://forums.unrealengine.com/t/reading-texture-color-data-using-uv-values/465888)._
