Unity3D圣典3.3版本-中文版
文集大纲加载中……
本文档使用 MrDoc 发布
-
+
首页
AddComponentMenu 添加组件菜单
# AddComponentMenu 添加组件菜单 Inherits from Attribute The AddComponentMenu attribute allows you to place a script anywhere in the "Component" menu, instead of just the "Component->Scripts" menu. AddComponentMenu 属性允许你在"Component"菜单中放置一个无论在哪的脚本,而不是仅仅在"Component->Scripts"菜单中。 You use this to organize the Component menu better, this way improving workflow when adding scripts. Important notice: You need to restart 你可以用它来更好的组织组件菜单,这种方式可以改善工作流程当你添加脚本的时候。重要提示:你需要重启 ``` // Javascript example @script AddComponentMenu ("Transform/Follow Transform") class FollowTransform extends MonoBehaviour { } // C# example: [AddComponentMenu("Transform/Follow Transform")] class FollowTransform : MonoBehaviour { }Constructors构造器 AddComponentMenuThe script will be placed in the component menu according to menuName. menuName is the path to the component 这个脚本将会被放置在组件菜单根据menuName(菜单名称)。menuName是组件的路径。 ```
da
2022年5月14日 14:58
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码