Strange Line Trace Inaccuracy

Wow, I never even thought that UI components would have any collision. It’s very odd that they do by default…

Here’s a video of the problem (I describe it in the video and show it in game): Strange Line Trace Bug UE4 - YouTube

This is really stumping me. The problem is the inconsistent line trace collision. I made sure the capsule ignores trace by visibility and the skeletal mesh does have visibility trace block enabled. Using the default mannequin.

Through some additional investigation, I found out that the line traces that actually collide with the skeletal mesh properly do apply damage; it just didn’t print it to screen (I used a break point and checked the output log to confirm).

Also, the line trace works properly from the front when I get up close. I checked and made sure the gun had no visibility blocking too just in case.

Thanks!

Looks like it colliding with that UI for bullets counter.