Hi, I’m a complete noob in c++, from what I have read on the net, I would need to activate this variable bReturnFaceIndex on my Trace Line event to be able to get the right element material index of a static mesh. I am aware that this cannot be done via Blueprint and I would need to activate it via c++ I think, I just don’t know what is the line to write in c++ and how to write it, I hope that someone would be so kind to guide me, thanks!
Note: I have tried trace complex collisions but it does not works for me, my face index is always -1, I’m working in Unreal 4.27, thank you
…yes, thank you for the info, the problem is that when I do a line Trace it does not return the material index, it always return -1, after some searches on the net I found out that to get the material index I would need to change the variable bReturnFaceIndex to true, but this variable is not accessible, and the face index pin does not work for me…I have found another solution anyway which works for me, thank you for your reply!