Unity logo
取消
购物车
应用
Sell Assets

11000+款5星资源

8.5万+用户参与评分

10万+社区成员鼎力支持

每款资源都经过 Unity 审核

首页
工具
可视化脚本
此内容由第三方提供商托管,该第三方提供商在未接受Targeting Cookies的情况下不允许观看视频。如果您想观看来自这些提供商的视频,请将“Targeting Cookie”的Cookie偏好设置为“是”。
1/5

Tutorial | Documentation | Support | Twitter


Have you ever faced such problems:
Recreating references for your components over and over again?
No control how the references are actually configured?
No control over the references in the inspector when setting them in code?
• End up frustrated with the slow scene loading when setting the references in code?


Well, here comes the solution.


EXPOSED is a simple but powerful tool which helps you easily and automatically map object references for your components. You can set rules for creating references. Plus these references are completely reusable for other components. Everything is configurable in the Inspector and you can see the results of rules settings and references immediately.


EXPOSED vs. drag&drop
Comparing to ordinary drag&dropping EXPOSED dramatically reduces repeatable d&d or reference selecting.


EXPOSED vs. coding
EXPOSED helps you to visualize the reference settings and to get rid of initialization performance overhead when setting references by code in Awake method.


How to use it
• Add ExposedReferences script on GameObject with your component.
• Create reusable exposed configuration asset file.
• Choose which references will be assigned automatically through EXPOSED and which will be handled manually.
• Define the rules.


Rules’ settings
There’s no need for coding when setting the rules, you can always use basic predefined rules. However, if you need to define extra conditions for obtaining references for scene objects, you can write your own rules and connect them through EXPOSED API. Or you will be able to use the query, which is realtime and the most flexible (query feature coming soon).


Predefined rules
• GameObject – searching for components on the same GameObject
• Children – searching for components or GameObjects in the children GameObjects
• Parents – searching for components or GameObjects in the parents GameObjects
• Tag – searching for components or GameObjects with specified tag in scene
• Object of Type – searching for objects of specified type in scene


Plugin is entirely written in C# and the source code files are included.


I´m planning to keep working on the EXPOSED plugin and keep adding more features. So if you have some ideas what could make your work with references easier, please definitely get in touch. You can ask your questions and share your ideas in the forum thread on Unity web site.

EXPOSED - rule-based references

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