You can use the DeprojectScreenPositionToWorld
method in APlayerController
to find the 4 corners of your screen in-world.
With that you can create a box and see if the actor’s location is inside that box.
For that you have IsPointInBox
from UKismetMathLibrary
You don’t need to test collision with this, just positions in the world.