unity出现Ignoring menu item NGUI because it is in no submenu!
2017-11-23 12:52
1751 查看
原文: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:
Quote
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(); }
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:
Quote
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(); }
相关文章推荐
- Unity5.4.1与NGUI出现的问题Ignoring menu item NGUI because it is in no submenu!
- Unity5.3.6升级到Unity5.4.4 NGUI出现Ignoring menu item NGUI because it is in no submenu!问题解决方案
- Unity5.4.1与NGUI出现的问题Ignoring menu item NGUI because it is in no submenu!
- Unity5.4.1与NGUI出现的问题Ignoring menu item NGUI because it is in no submenu!
- 01 Ignoring menu item NGUI error, Unity 5.4.1 plus Fix
- mybatis foreach 出现 there is no getter for property named '__frc aade h_item_0' in 'class
- 如何解决使用ARC后出现的PerformSelector may cause a leak because its selector is unknown
- php7.0 出现 curl_setopt(): Disabling safe uploads is no longer supported in 报错!
- invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause
- mysql 触发器的问题 Can't update table 'tbl' in stored function/trigger because it is already used by state
- Override any CSS style (even inline styles) no matter where it is defined
- php7.0 出现 curl_setopt(): Disabling safe uploads is no longer supported in 报错!
- 关于编译x264时出现的for Cortex-A8 erratum because it has no mapping symbols问题
- 'ddlXXX' has a SelectedIndex which is invalid because it does not exist in the list of items
- 删除数据库时提示数据库正在被使用,无法删除(Cannot drop database databasename because it is currently in use)的问题
- APP-SQLAP-10380:You cannot select this payment document because it is in use by another payment batch
- Unable to update the EntitySet 'T_JsAPI' because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element to support the current operation.
- git 复位出现If no other git process is currently running, this probably means a git process crashed in this repo
- SqlServer2005 恢复数据库时出现Exclusive access could not be obtained because the database is in use 的解决方法
- 【异常】SparkStreaming长时间运行出现: Dropping SparkListenerEvent because no remaining room in event queue