# Event Hit - Get a materials texture file name?

**URL:** <https://forums.unrealengine.com/t/event-hit-get-a-materials-texture-file-name/127882>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [June 22, 2019, 7:35pm UTC](https://forums.unrealengine.com/t/event-hit-get-a-materials-texture-file-name/127882 "2019-06-22T19:35:25Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [June 22, 2019, 10:33pm UTC](https://forums.unrealengine.com/t/event-hit-get-a-materials-texture-file-name/127882/4 "2019-06-22T22:33:36Z")

</div>

Hum… offhand. In the material you have to designate the texture as a parameter so that it can be exposed and accessed along with the material.

You may want to look I to material functions as well.

I’m assuming you are probably processing the actual JPG via custom cpp since you are using a jpg rather then better file formats.  
I’m not sure how well a jpg swap would run at runtime though.

Also, in this tutorial they were shooting at the wall and changing it, so maybe you can get something off it.

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

---

_[View the full topic](https://forums.unrealengine.com/t/event-hit-get-a-materials-texture-file-name/127882)._
