Alert! Due to maintenance issues, Assets will be uploaded on: TopGameAssets.com

2D Line Of Sight Detection System

This is a paid asset, but now you can download it totally free. However, please keep in mind that this package is only provided for studying or testing the product prior to purchasing it, not for business functions.

Overview :

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

Highlights:

  • Custom Editor for easy setup
  • Multiple options to tailor the performance for your target (mobile or desktop)
  • Highly customizable
  • The FOV ranges from 1° to 180°.
  • Variable detection distance
  • Automatic rotation from 1° to 180° to the left or right (can stop on detection) with variable speed
  • The FOV cone can be set to be visible or invisible
  • The Color for detected and undetected can be set and animated
  • Custom sprites for detected and undetected states can be set for the FOV cone
  • You can set multiple detection trigger tags
  • You can define multiple levels of raycast for line-of-sight detection
  • Raycasting occurs only when the target enters the detection area of ​​the searched object
  • The detection interval (after raycast) can be set between 0.1 and 5.0 seconds to save power
  • The radiance used for raycasting is variable to save power
  • The search direction can be switched from center to outside or from outside to center
  • Debug rays can be drawn in the editor during gameplay for easier gameplay debugging
  • Custom Unity Events can be added via the editor when an object is detected or has been lost by detection. The events pass the GameObject of the detector as well as the detected object to easily implement further functions
  • A Helper function to rotate elements with the FOV cone is included

Download 2D Line Of Sight Detection System v1.0 Latest Version


Leave a Comment