Unity屬性——AddComponentMenu

原文:https://www.cnblogs.com/GouBin/p/6393899.html 字面理解:添加 組件選項菜單 分析:可能是添加一個腳本或者組件到一個物體上 驗證: 新建一個腳本:AttributeTest 提示:添加一個組件菜單屬性,允許你放一個腳本在Compoent菜單下,來代替Compoent-》Scripts菜單 看一下場景: 場景中一共新建了兩個腳本,結果在Compoen
相關文章
相關標籤/搜索