Trouble with Get Material From Collision Face Index

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,

2 Likes

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

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

3 Likes

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