zoukankan      html  css  js  c++  java
  • 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:

    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/", false, 11)]
    3.         static void Breaker () { }
    4.  
    5.         [MenuItem("NGUI/Help", false, 12)]
    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", false, 120)]
      3.         static public void Help () { NGUIHelp.Show(); }
      4.  
      5.  
  • 相关阅读:
    aidl 详解
    为什么我选择用 flutter
    hunting
    Dynamic programming
    android 微信开发交流群
    hash function 字符串哈希函数
    函数也可以看成是空间的变换
    语法树
    生活中的物理随处可见
    about coroutine
  • 原文地址:https://www.cnblogs.com/ncgds/p/7643278.html
Copyright © 2011-2022 走看看