# Problem getting the correct Material Slot Name under a Touch/Click event on a mesh

**URL:** <https://forums.unrealengine.com/t/problem-getting-the-correct-material-slot-name-under-a-touch-click-event-on-a-mesh/1195192>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [June 10, 2023, 7:33pm UTC](https://forums.unrealengine.com/t/problem-getting-the-correct-material-slot-name-under-a-touch-click-event-on-a-mesh/1195192 "2023-06-10T19:33:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![CraveClone](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CraveClone](https://forums.unrealengine.com/u/CraveClone)\
**Post date:** [June 12, 2023, 12:26am UTC](https://forums.unrealengine.com/t/problem-getting-the-correct-material-slot-name-under-a-touch-click-event-on-a-mesh/1195192/2 "2023-06-12T00:26:02Z")

</div>

I Still don’t understand how this works. But after reading through a related post.

> [@How do you select a static mesh element by clicking the left mouse button in the running mode?](https://forums.unrealengine.com/t/how-do-you-select-a-static-mesh-element-by-clicking-the-left-mouse-button-in-the-running-mode/415222/6):
>
> Always output only the contents of index 0.

It seems the index I am using as the slot Index is actually LOD related. I found that if I correlate the LOD index with the slot order from the material my method works.

 ![Screenshot 2023-06-11 at 8.23.46 PM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/a/0/fa038549a4e122ee02a1d4ea873f7f572eb2ca24.png)

---

_[View the full topic](https://forums.unrealengine.com/t/problem-getting-the-correct-material-slot-name-under-a-touch-click-event-on-a-mesh/1195192)._
