Unity logo
取消
购物车
应用
Sell Assets

11000+款5星资源

8.5万+用户参与评分

10万+社区成员鼎力支持

每款资源都经过 Unity 审核

首页
工具
游戏工具
此内容由第三方提供商托管,该第三方提供商在未接受Targeting Cookies的情况下不允许观看视频。如果您想观看来自这些提供商的视频,请将“Targeting Cookie”的Cookie偏好设置为“是”。
1/4
Enhanced Trigger Box is a highly customisable trigger box that allows developers to create events that are triggered when an object enters a specified area.
可编程渲染管线(SRP)兼容性
Unity可编程渲染管线(SRP)是让您能够通过C#脚本控制渲染的一个功能。SRP是支撑通用渲染管线(URP)和高清渲染管线(HDRP)的底层技术。
Unity版本内置渲染管线通用渲染管线(URP)高清渲染管线(HDRP)
6000.0.34f1
兼容
兼容
兼容
描述

Enhanced Trigger Box is a highly customisable trigger box that allows developers to create events that are triggered when an object enters a specified area.



Full Documentation



Please note that example scene in this version of the ETB has been built with Unity 6.0 and is not guaranteed to work with drastically older or newer versions of the engine. However, the script itself will work in any engine version from Unity 5.0 onward. The examples directory is fully optional and if you have no desire to explore it (or are worried about engine incompatibles), you do not need to import that directory and instead you can just import the scripts directory.



The Enhanced Trigger Box is a free tool that can be used within Unity. It allows developers to set up various responses to be executed when an object enters a specified area. Developers can also set up conditions that must be met before the responses are executed, such as camera conditions where, for example, a player must not be looking at a specific object, or player preference conditions, such as progress through a level. Responses are executed after all conditions have been met. These range from spawning GameObjects or disabling components to playing animations or altering material properties.



It has been designed in a way that allows you to easily extend the Enhanced Trigger Box yourself by creating more responses or conditions.



How does it all work? At the top level, you have the Enhanced Trigger Box script. It includes some basic options and uses a box collider to represent the boundaries of the Enhanced Trigger Box. Beneath that, you have Enhanced Trigger Box Components, which are MonoBehaviours that you can add to the Enhanced Trigger Box. These come in the form of either a Condition or a Response and are located in the `Scripts/TriggerBoxComponents` folder.



When an Enhanced Trigger Box is entered by another object with a collider (you can disable this entry check if you want, and it will be treated as 'entered' on initialization), all the conditions are checked to see if each condition has been met. If all the conditions are met, all the responses are executed.



New conditions and responses are in development and it's very easy for you to add your own. To learn how to add your own conditions or responses or to see the existing ones in detail follow the documentation link at the top of this text.

Enhanced Trigger Box

(61)
378 users have favourite this asset
(378)
FREE
许可证类型
文件大小
2.3 MB
最新版本
0.5.0
最新发布日期
2025年2月10日
原始 Unity 版本
5.4.0
高品质资源
11000+款5星资源
深受用户信赖
8.5万+用户参与评分
强大的社区支持
10万+社区成员鼎力支持
Unity logo
语言
反馈
合作伙伴计划
合作伙伴
USD
EUR
Copyright © 2025 Unity Technologies
所有价格不包含税
USD
EUR