Does anything set FHitResult.FaceIndex?

Hey guys, I’m trying to get information about the exact face the user clicks on, and I saw FHitResult.FaceIndex, which sounds like it’d be very useful, but it’s not exposed in blueprint, which seemed a bit odd, and when I grabbed it through code, it doesn’t seem to work (Just returns -1 all the time).

I had a quick look through the source code, and while I can see where it’s defined in EngineTypes.h, I can’t see anything that gives it a value.

Am I missing something? Or is it just not implemented yet?

The FaceIndex is only set when using a triangle mesh for the query. You can see this in CollisionConversions.cpp : ConvertQueryImpactHit

I have the same problem, I try it with blueprint for now, not with C++ code.
Im trying both with Single Line Trace for Channel and Single Line Trace for Objects.
First interesting thing that the blueprint Break Hit Result doesnt contain FaceIndex.
Though I added a GetFaceIndex custom blueprint function, Im also getting -1 every time.
The mesh is triangle and Trace Complex checkbox is also checked.

How to “use a triangle mesh for the query”?

Do I have to use GetHitResultUnderCursorForObjects() with “triangle mesh” for the object type?
Then how should I do it (EObjectTypeQuery is very obscure to me)?

See my question here.

I would like to know how to use “when using a triangle mesh for the query” as well.