unity出现Ignoring menu item NGUI because it is in no submenu!
Posted easydots的博客园
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了unity出现Ignoring menu item NGUI because it is in no submenu!相关的知识,希望对你有一定的参考价值。
原文:http://www.tasharen.com/forum/index.php?topic=14856.0
Hey Arenmook, after upgrading to Unity 5.4.1 (from 5.3.6p1) and upgrading to NGUI 3.10.1, Unity kept complaining on me on every recompile like this:
Ignoring menu item NGUI because it is in no submenu!
So I looked into it, and it turns out that this is the problem in NGUIMenu.cs Line 715+:
在Asset中的NGUI文件夹中找到NGUIMenu.cs文件,打开,把下面两句代码替换
-
-
[MenuItem("NGUI/", false, 11)]
-
static void Breaker () { }
-
-
[MenuItem("NGUI/Help", false, 12)]
-
static public void Help () { NGUIHelp.Show(); }
-
It can be easily fixed by removing the "Breaker" lines and increasing "Help" Priority by 10, like so:
替换为以下一句
-
-
[MenuItem("NGUI/Help", false, 120)]
-
static public void Help () { NGUIHelp.Show(); }
-
-
以上是关于unity出现Ignoring menu item NGUI because it is in no submenu!的主要内容,如果未能解决你的问题,请参考以下文章
wordpress 多站点 wp_update_nav_menu_item 返回 $menu_item_db_id 但未显示在菜单中
mat-menu-item 与 mat-menu 按钮大小相同? (角度材料 v.12)