Unity属性——AddComponentMenu

原文:https://www.cnblogs.com/GouBin/p/6393899.html 字面理解:添加 组件选项菜单 分析:可能是添加一个脚本或者组件到一个物体上 验证: 新建一个脚本:AttributeTest 提示:添加一个组件菜单属性,允许你放一个脚本在Compoent菜单下,来代替Compoent-》Scripts菜单 看一下场景: 场景中一共新建了两个脚本,结果在Compoen
相关文章
相关标签/搜索