[MenuItem("GameObject/Haha",false,10)]
public static void Haha(){
Debug.Log ("haha");
}
[MenuItem("Assets/Hehe")]
public static void Hehe(){
Debug.Log ("hehe");
}GameObject下的优先级在10左右的菜单,在Hierarchy里面右键时会显示这些菜单
Assets下的菜单,在Project里面右键时或显示这些菜单