脚本/功能 2D Line Of Sight Detection System 1.0

插件名称:2D Line Of Sight Detection System 1.0插件官网:访问官网
版权协议:Red pine1.1解压密码:通用密码
2D Line Of Sight Detection System 1.0

2D Line Of Sight Detection System 1.0

2D Line Of Sight Detection System 1.0
66c7a24d-092d-4b81-83ab-316fddc3_resized.jpg


9cc77deb-ccea-42c2-b0fe-ea27091a_resized.jpg


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
- Multiple layers on which the raycast for the line of sight detection is being made can be set
- Raycast only happens when a target object enters the detection radius of the search object
- Detection interval (when the raycast is made) can be set between 0.1 and 5.0 seconds to save on performance
- The density of the rays used for the raycast is variable to save on performance
- The search direction can be toggle from middle to the outside or outside to the middle
- In the editor debug rays can be drawn during gameplay to help debugging gameplay
- 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
- Helper function to rotate elements with the FOV cone is included

游客,如果您要查看本帖隐藏内容请回复


作者 拖拉机 发表于 2022-9-7 17:21:03

kyx11180

66666666666666666666666
发表于 2025-2-23 14:29:46
您需要登录后才可以回帖 登录 | 立即注册
拖拉机

关注0

粉丝236

发布2632

热门作品推荐
glow
皮革书包背包纽扣缝线缝合凹陷笔刷15 Fabri
glow
卡通角色头发饰发髻风格化发型笔刷15 styli
glow
Runtime MetaHuman Lip Sync 虚幻5.5-5.6
glow
RC - TOOLS 3.0 适配UE5.3-5.4
glow
Beginner Multiplayer Lobby - Blueprint T
glow
Lightning Element - Spell VFX Pack 虚幻4
glow
MC Play Lute Animation Pack 虚幻5.0-5.6
glow
Multiplayer Handcuffs System 虚幻5.1+多
glow
Modular Drone System (Replicated) 虚幻4.
glow
Ultra Game Template 1.3 适配UE5.3