How to use line trace with skeletal meshes?

Can’t seem to get a material name from a line trace hit on a skeletal mesh. I only can on a static mesh.

Goal: To highlight a material that a mouse is over.

I’ve defined materials on the mesh in a 3d modeling suite.
I can access materials from the line trace like in the pic.
However, line traces are only working with static meshes, not skeletal meshes. Is there a setting?

Things I’ve tried:
Setting trace complex on line trace (necessary to get material).
Creating physics asset for skeletal mesh.
Changing the collision settings on the skeletal mesh.

After creating a physics asset, the line trace is stopped by the mesh, but no material name is shown. However, material names are shown on static meshes.

Hitting the same issue. Were you ever able to figure this one out?

Unfortunately “Face Index” is never going to be returned for a skeletal mesh (it will be -1) , so your material lookup will fail.

In fact, in my experience it is only ever going to work for (non physical) static meshes. The reason is that despite the fact that you have ‘trace complex’ enabled, traces can only ever collide with the skeletal mesh’s physics asset bodies, not the literal triangles on the skeletal mesh itself.

This is actually a pretty annoying limitation of the underlying PhysX implementation. What would be great is if there was some way it could ‘convert’ the impact position on the physics body to a position on the tri mesh, in order to get a face index.

Does anyone at Epic have a workaround for this?

Bumping this. I wonder why there is still no way to do this for such an important feature.

well at least I feel better, thought I was really missing something even set up debugger I am new :slight_smile: and can see it doesn’t even notice the AI Skeleton i have (Chicken) shows hit target is landscape, or a box or any static mesh but it is annoying :slight_smile: i don’t even know what to call stuff