Pawn Sensing through static meshes? Fix?

I am having issues with my pawn sensing component seeing/sensing through walls/static meshes. I thought this would have been more of a hot topic but can’t find related questions about this.

I actually think I figured it out…
So off of OnSeePawn I do a line trace for the CharacterPawn and use that to determine if the rest of the logic should be allowed to execute.

Is that the official way of doing this? Just figured the Pawn Sensing component would have the ability to edit the trace channels and what have you… Anyway… This is working for now, just decided to post this anyway to get the correct answer to this question if this isn’t the correct way to do it/best practice.


Can you post a picture to see how you’ve done that cause I’m having the same problem…