You are currently viewing 2D Line Of Sight Detection System

2D Line Of Sight Detection System

This asset package contains scripts/prefabs to help you build you Canvas based 2D games that need line of sight detection with visible/invisible FOV cones. The asset includes 2 demo scenes one for top-down, one for sidescrolling behavior. The system is designed to be variable in it’s performance impact and runs well on mobile as well on PCs.

The project has been developed with Unity 2019.3 but also works with 2019.2. Previous Unity Versions are not supported by the custom editor and the prefabs.


Features:- Custom Editor for easy setup

– Multiple options to tailor the performance for your target (Mobile/Desktop)

– Highly customizable

– Variable FOV from 1° – 180° degrees

– Variable detection distance

– Automatic rotation from 1° – 180° degrees to the left/right (can stop on detection) with variable speed

– The FOV cone can be set to visible/invisible

– Color for detected/undetected can be set and animated

– Custom sprites for detected/undetected state can be set for the FOV cone

– Multiple tags which trigger detection can be set