# Trouble with Get Material From Collision Face Index

**URL:** <https://forums.unrealengine.com/t/trouble-with-get-material-from-collision-face-index/231532>\
**Category:** Cinematics & Media\
**Tags:** unreal-engine\
**Created:** [May 27, 2021, 8:57am UTC](https://forums.unrealengine.com/t/trouble-with-get-material-from-collision-face-index/231532 "2021-05-27T08:57:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrBob](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MrBob](https://forums.unrealengine.com/u/MrBob)\
**Post date:** [May 27, 2021, 8:57am UTC](https://forums.unrealengine.com/t/trouble-with-get-material-from-collision-face-index/231532/1 "2021-05-27T08:57:41Z")

</div>

I’m having a bit of trouble with the “Get Material From Collision Face Index” node which I am using for the first time. I’m attempting to access the material of the face of a static mesh which I am line tracing from the player camera, with the eventual goal of then accessing the element number of said material on the static mesh.

The issue I’ve encountered is no matter what I do, the “Face Index - \> Get Material From Collision Face Index → Return value” is returning “None” regardless of which static mesh I trace. As noted in the print strings I’ve tested, I can see that I’m correctly hitting static meshes, so I’m not sure what I’m doing wrong here.

Any help would be greatly appreciated!

Thanks,

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/1/21986044bb7356fb6bd54e016d2249586ee8a1e7.png)

---

<div class="post-metadata">

**Author:** ![Braitenbug](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/braitenbug/32/573169_2.png) [@Braitenbug](https://forums.unrealengine.com/u/Braitenbug)\
**Post date:** [January 26, 2022, 3:01pm UTC](https://forums.unrealengine.com/t/trouble-with-get-material-from-collision-face-index/231532/2 "2022-01-26T15:01:58Z")

</div>

Did you find a solution? This is driving me crazy!

---

<div class="post-metadata">

**Author:** ![nameLive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nameLive](https://forums.unrealengine.com/u/nameLive)\
**Post date:** [April 18, 2022, 3:42pm UTC](https://forums.unrealengine.com/t/trouble-with-get-material-from-collision-face-index/231532/3 "2022-04-18T15:42:43Z")

</div>

You have to check Trace Complex in order to get the face index needed, otherwise it returns -1. Also it only works on Static Meshes and not Skeletal meshes

---

<div class="post-metadata">

**Author:** ![TheWolf](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thewolf/32/1036665_2.png) [@TheWolf](https://forums.unrealengine.com/u/TheWolf)\
**Post date:** [October 3, 2023, 7:40pm UTC](https://forums.unrealengine.com/t/trouble-with-get-material-from-collision-face-index/231532/4 "2023-10-03T19:40:32Z")

</div>

Thank you, learning that trace complex is required just saved me a bunch of confusion.
