This is an AI/NPC field of view with target detection,
If an AI/NPC is close to the player it will turn off the field of view and in a amount of time it enable it self again.
When you see a green line in the field of view, this means the target is detected,
and if you see no line in the field of view than the target is not detected,
cause the player distance and angle is to far or there is a wall in the field of view,
and the AI/NPC can't look through walls :).
It only detect targest if the target is in the field of view with no world obstacles in between.
If you like what i do please give a thumps up and consider to subscribe and if you dont want to mis new uploaded videos then enable the notification bell,
and if you have any questions please place it in the comment section.
Thank you for watching, you're awesome!!
#unity3D #AINPC #FOV #target #detection