I searched in google , youtube , and here , about line trace detect enemy within the viewport ,for example slender man , when enemy behind player , and when player face enemy it will take action event like play sound impact , or enemy fade out , i saw many videos talk about line trace object pickup , or shooter .
But i don’t find tutorial how to make player detect enemy in screen .
I asked before here long time how to achieve this , and someone provide me how to make it , but the problem his idea make game drop frame in game .
Does anyone know how to make this ? i really need it , cause i’m working in my project required this idea, i hope someone who have free time explain us how to achieve this .
this is link that we are discussed about it .