茫茫網海中的冷日
         
茫茫網海中的冷日
發生過的事,不可能遺忘,只是想不起來而已!
 恭喜您是本站第 1674934 位訪客!  登入  | 註冊
主選單

Google 自訂搜尋

Goole 廣告

隨機相片
PIMG_00272.jpg

授權條款

使用者登入
使用者名稱:

密碼:


忘了密碼?

現在就註冊!

Game Play Maker : [轉貼]unity3D AddComponentMenu 添加組件菜單

發表者 討論內容
冷日
(冷日)
Webmaster
  • 註冊日: 2008/2/19
  • 來自:
  • 發表數: 15771
[轉貼]unity3D 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 構造器

  • AddComponentMenu
    The script will be placed in the component menu according to menuName. menuName is the path to the component
    這個腳本將會被放置在組件菜單根據menuName(菜單名稱)。menuName是組件的路徑。
最後修改:2011年5月18日 Wednesday 16:19

原文出處: AddComponentMenu 添加组件菜单
前一個主題 | 下一個主題 | | | |

討論串




Powered by XOOPS 2.0 © 2001-2008 The XOOPS Project|