编辑器拓展 【更新】SensorToolkit 2 2.4.1检测探测传感器插件

Unity插件信息
插件名称: SensorToolkit 2
插件官网: https://assetstore.unity.com/packages/tools/ai/sensortoolkit-2-205336
版本: 2.4.1
解压密码:
素材类型: 编辑器拓展
本帖最后由 微笑的猫 于 2023-12-6 12:17 编辑


SensorToolkit系列索引

SensorToolkit 2 2.0.3  下载链接
SensorToolkit 2 2.4.6  下载链接
SensorToolkit 2 2.5.4  下载链接
SensorToolkit 2 2.5.6  下载链接
SensorToolkit 2 2.5.10  下载链接
























SensorToolkit is a powerful abstraction over the built-in Unity functions like Raycasts, Overlaps and Trigger Colliders. You can add standalone sensor components to your game objects and configure them as needed. The sensors can be queried to determine what they detect and provide additional information, such as the visibility or shape of the target.

Features:
• Works in both 2D and 3D.
• Many sensor types available: Raycasting, Overlaps, Steering, Line of Sight and more.
• Lightweight and modular. Sensors are independent components that feel native to Unity.
• Easy to integrate with your project: simply add a sensor component and configure it.
• Flexible and unopinionated, allowing you to design your game as desired.
• Many filtering options and querying functions for precise detection.
• Capable of detecting individual colliders or rigid bodies made up of multiple colliders.
• Advanced line-of-sight implementation can calculate partial visibility.
• Performance is a key focus, with many options available to control performance.
• Test sensors in the editor and confirm their configurations before running the game.
• Upgraded steering behaviour based on 'Context-Based Steering' method.
• All source code is included.
• Zero garbage generated.

Who is this for:
SensorToolkit is designed to be user-friendly and easy to use, regardless of your level of programming experience. Non-programmers will appreciate the ability to create complex detection behaviors without writing code, as the kit is integrated with Playmaker and additional integrations are planned. Programmers will find SensorToolkit to be a powerful foundation for building AI behaviors, as it manages the complexities of object detection and provides a clean and simple interface. The widgets and debugging inspectors also help you quickly identify any configuration issues, allowing you to reduce boilerplate and keep your code organized and efficient.

Integrations:
- Playmaker
- Behavior Designer
- Game Creator 2
- Adventure Creator
More coming...

But detecting things is easy?
Sometimes, I'm asked why to use this asset when it's easy to call the functions for raycasts and overlaps directly. While it is true that these are simple tasks, that is not the only value that SensorToolkit aims to bring. The main challenges that this asset aims to solve are as follows:
• Comprehensive coverage of the raycast, overlap, and trigger collider functionality.
• Debug widgets that show the exact shape of a sensor's detection range.
• Ability to examine what a sensor detects during runtime or in the editor, saving time and effort in debugging by clearly showing whether a sensor can detect an object or not.
• Powerful implementation for line-of-sight testing, with a lot of effort put into this sensor.
• Robust event-driven architecture that allows you to change all sensor settings at runtime without encountering bugs.
• Sensors can detect objects made up of many sub-objects, such as a rigid body with multiple colliders on child objects. The sensors can intelligently map many input objects to a single output detection, with high configurability.
• Convenience functions that return lists or can be enumerated, without generating garbage.
• Sensors can be plugged into each other to build up complex detection behaviour.
• Much flexibility is provided to control the performance impact of the sensors at runtime.

Difference from v1:
This is a significant update from the first version of SensorToolkit. While it may seem familiar, there are a significant number of changes. The first version's code was difficult to extend, making it hard to add new sensors or extend existing ones without blowing out complexity. SensorToolkit 2, on the other hand, has a new architecture and philosophy that makes it easier to add new features. Some of the major new features include:
• Sensors capture the bounding box of detected objects, allowing for easy targeting of an object's center of mass.
• Ray sensor supports all Physics.Raycast shapes including 'ray', 'sphere', 'box' and 'capsule'.
• Range sensor supports all Physics.Overlap shapes including 'sphere', 'box' and 'capsule'.
• Sensors do not implement the 'Update' method, meaning that if a sensor is not pulsing, it has no performance impact when this function is called each frame. This is especially useful for the TriggerSensor, allowing you to create many static trigger zones with good scalability while still being able to use the toolkit's comprehensive API.
• Line of Sight is now a separate sensor. It's been significantly extended, including the ability to smooth visibility scores over multiple frames, so it's possible to calculate fractional visibility using a single ray per pulse. It can scale visibility by distance and view angle so it's no longer necesassary to use a FOVCollider.
• Sensor pulses are randomly staggered so they don't fall on the same frame when they have the same pulse interval.
• Steering sensor that replaces the old Steering Rig and is based on the more advanced "Context Based Steering" method, which should work better and be easier to use.
• New arc sensor that allows for raycasts over a parabola.
• New boolean sensor lets you combine the results of multiple other sensors. For example: 'What are the things that I can hear and also see'.
• Ability to inject custom code into sensor detection logic for custom filtering needs.
• New Navmesh sensor for analyzing a navmesh.
• More robust codebase that has eliminated all outstanding bugs.


SensorToolkit是对内置Unity功能的一个强大抽象,如Raycasts、Overlaps和Trigger Colliders。你可以将独立的传感器组件添加到你的游戏对象中,并根据需要对它们进行配置。这些传感器可以被查询,以确定它们检测到的东西,并提供额外的信息,如目标的可见度或形状。

特点。
- 在2D和3D中都能工作。
- 许多传感器类型可用。雷射、重叠、转向、视线等。
- 轻量级和模块化。传感器是独立的组件,在Unity中感觉是原生的。
- 易于与你的项目集成:只需添加一个传感器组件并对其进行配置。
- 灵活和无主见,允许你按需要设计你的游戏。
- 许多过滤选项和查询功能用于精确检测。
- 能够检测单个碰撞器或由多个碰撞器组成的刚性体。
- 先进的视线实现可以计算出部分可见性。
- 性能是一个重点,有许多选项可用于控制性能。
- 在编辑器中测试传感器,并在运行游戏前确认其配置。
- 基于 "基于上下文的转向 "方法的升级版转向行为。
- 包括所有的源代码。
- 零垃圾产生。

这是为谁设计的。
SensorToolkit被设计成对用户友好且易于使用,无论你的编程经验水平如何。非编程人员会很欣赏这种无需编写代码就能创建复杂的检测行为的能力,因为该工具包已与Playmaker集成,并计划进行其他集成。程序员会发现SensorToolkit是建立人工智能行为的强大基础,因为它管理着复杂的物体检测,并提供了一个干净简单的界面。小组件和调试检查器也能帮助你快速识别任何配置问题,让你减少模板,保持你的代码有条不紊和高效。

集成。
- Playmaker
- 行为设计器
- 游戏创造者2
- 冒险创造者
更多内容即将推出...

但是检测东西很容易吗?
有时候,我被问到为什么要使用这个资产,因为直接调用射线发射和重叠的函数很容易。虽然这些任务确实很简单,但这并不是SensorToolkit所要带来的唯一价值。这个资产旨在解决的主要挑战如下。
- 全面覆盖射线传输、重叠和触发碰撞器的功能。
- 调试部件,显示传感器检测范围的确切形状。
- 能够在运行时或在编辑器中检查传感器检测到的东西,通过清楚地显示传感器是否能检测到一个物体来节省调试的时间和精力。
- 强大的实现,用于视线测试,在这个传感器上投入了大量的精力。
- 强大的事件驱动架构,允许你在运行时改变所有的传感器设置,而不会遇到bug。
- 传感器可以检测由许多子对象组成的物体,比如一个刚体在子对象上有多个碰撞器。传感器可以智能地将许多输入对象映射到一个输出检测,具有很高的可配置性。
- 返回列表或可枚举的便利函数,不产生垃圾。
- 传感器可以相互插入以建立复杂的检测行为。
- 提供了很大的灵活性,可以在运行时控制传感器的性能影响。

与v1的区别。
这是对SensorToolkit第一个版本的重大更新。虽然它可能看起来很熟悉,但有大量的变化。第一个版本的代码很难扩展,因此很难增加新的传感器或扩展现有的传感器而不至于爆出复杂性。另一方面,SensorToolkit 2有一个新的架构和理念,使其更容易添加新功能。一些主要的新功能包括。
- 传感器捕获检测到的物体的边界框,从而可以轻松定位物体的质心。
- 射线传感器支持所有Physics.Raycast形状,包括 "射线"、"球体"、"盒子 "和 "胶囊"。
- 范围传感器支持所有的Physics.Overlap形状,包括 "球体"、"盒子 "和 "胶囊"。
- 传感器不实现'更新'方法,这意味着如果一个传感器没有脉动,当每一帧调用这个函数时,它不会对性能产生影响。这对TriggerSensor特别有用,允许你创建许多静态触发区,具有良好的可扩展性,同时仍然能够使用工具包的全面API。
- 视线现在是一个独立的传感器。它得到了显著的扩展,包括在多个帧上平滑能见度分数的能力,因此有可能使用每个脉冲的单一光线来计算分数能见度。它可以通过距离和视角来扩展可见度,因此不再需要使用FOVCollider。
- 传感器的脉冲是随机交错的,所以当它们有相同的脉冲间隔时,它们不会落在同一帧上。
- 取代旧的S的转向传感器





作者 cg小白兔 发表于 2023-2-20 12:36:50
您需要登录后才可以回帖 登录 | 立即注册
cg小白兔

关注0

粉丝0

发布4014

热门作品推荐
glow
Hidden Object Game Template 1.36 找你妹
glow
【更新】UGUI Super ScrollView 2.5.4
glow
【更新】Ultimate Character Controller 3.
glow
免费模型仙侠风古代场景有山有树有花有古代
glow
长生原主角模型合集 仙侠类写实人物武器模
glow
FXVille Blood Impact FX Pack 1.5 血液效
glow
SUNTAIL - Stylized Fantasy Village 1.1.3
glow
SUNTAIL - Stylized Fantasy Village 1.0
glow
【更新】Master Audio 2022 AAA Sound 1.0.
glow
【更新】Curvy Splines 8 8.9.0