Unity5.4.1与NGUI出现的问题Ignoring menu item NGUI because it is in no submenu!

来源:互联网 发布:淘宝考试以下不是催情 编辑:程序博客网 时间:2024/06/06 15:46

原文: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文件,打开,把下面两句代码替换

  1.        
  2.         [MenuItem("NGUI/"false11)]
  3.         static void Breaker () { }
  4.  
  5.         [MenuItem("NGUI/Help"false12)]
  6.         static public void Help () { NGUIHelp.Show(); }
  7.  

It can be easily fixed by removing the "Breaker" lines and increasing "Help" Priority by 10, like so:

替换为以下一句

  1.        
  2.         [MenuItem("NGUI/Help"false120)]
  3.         static public void Help () { NGUIHelp.Show(); }

  4.  

Then Unity shuts up :)这样就解决了,看完不点赞,,免费拿人家的劳动成果。习惯了还
10 0